forked from c9/cloud9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud9.sh
More file actions
executable file
·42 lines (31 loc) · 1.05 KB
/
Copy pathcloud9.sh
File metadata and controls
executable file
·42 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh -e
# lets check if we have the submodules initialized
cd `dirname $0`
cd ..
if [ ! -e support/ace/LICENSE ]; then
echo "--------------------------- Please wait, initializing submodules for first launch ------------------------"
git submodule update --init --recursive
echo "--------------------------- Submodules installed ------------------------"
fi
case `uname -a` in
Linux*x86_64*) echo "Linux 64 bit"
support/node-builds-v4/node-linux64 bin/cloud9.js "$@" -a x-www-browser
;;
Linux*i686*) echo "Linux 32 bit"
support/node-builds-v4/node-linux32 bin/cloud9.js "$@" -a x-www-browser
;;
Darwin*) echo "OSX"
support/node-builds-v4/node-darwin bin/cloud9.js "$@" -a open
;;
CYGWIN*) echo "Cygwin"
support/node-builds-v4/node-cygwin.exe bin/cloud9.js "$@" -a "cmd /c start"
;;
MING*) echo "MingW"
support/node-builds-v4/node-cygwin.exe bin/cloud9.js "$@" -a "cmd /c start"
;;
SunOS*) echo "Solaris"
support/node-builds-v4/node-sunos bin/cloud9.js "$@"
;;
*) echo "Unknown OS"
;;
esac