-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud9.sh
More file actions
executable file
·45 lines (33 loc) · 716 Bytes
/
Copy pathcloud9.sh
File metadata and controls
executable file
·45 lines (33 loc) · 716 Bytes
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
40
41
42
43
44
45
#!/bin/sh
CMD="$0"
CMD_DIR=`dirname "$CMD"`
cd "$CMD_DIR/.."
make update
case `uname -a` in
Linux*x86_64*) echo "Linux 64 bit"
node server.js "$@" -a x-www-browser
;;
Linux*i686*) echo "Linux 32 bit"
node server.js "$@" -a x-www-browser
;;
Linux*arm*) echo "Linux ARM"
node server.js "$@" -a x-www-browser
;;
Darwin*) echo "OSX"
node server.js "$@" -a open
;;
FreeBSD*64*) echo "FreeBSD 64 bit"
node server.js "$@" -a open
;;
CYGWIN*) echo "Cygwin"
node server.js "$@" -a "cmd /c start"
;;
MING*) echo "MingW"
node server.js "$@" -a "cmd /c start"
;;
SunOS*) echo "Solaris"
node server.js "$@"
;;
*) echo "Unknown OS"
;;
esac