This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
install.sh
executable file
·71 lines (47 loc) · 1.58 KB
/
install.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env sh
echo "This script downloads required JavaScript libraries"
# Constants
LIBS=_libs
# If the "_libs" directory exists, delete it
if [ -d "$LIBS" ]; then
rm -r $LIBS
fi
# Create the directory
mkdir $LIBS
echo
echo "############################"
echo "# #"
echo "# Downloading Sencha Touch #"
echo "# #"
echo "############################"
curl http://cdn.sencha.io/touch/sencha-touch-2.1.0-gpl.zip --output $LIBS/sencha.zip
# Extract the contents of the zip file
unzip $LIBS/sencha.zip -d $LIBS/sencha/
# Remove the zip file
rm $LIBS/sencha.zip
echo
echo "############################"
echo "# #"
echo "# Downloading Sencha Cmd #"
echo "# #"
echo "############################"
curl http://cdn.sencha.io/senchacmd/SenchaCmd-3.0.0.250-osx.app.zip --output $LIBS/sencha_cmd.zip
# Extract the contents of the zip file
unzip $LIBS/sencha_cmd.zip -d $LIBS
# Execute the application contained in it (OS X only)
# open $LIBS/SenchaCmd-3.0.0.250-osx.app
# Remove the zip file
rm $LIBS/sencha_cmd.zip
echo
echo "######################################"
echo "# #"
echo "# Downloading the latest Siesta Lite #"
echo "# #"
echo "######################################"
curl http://www.bryntum.com/download/?product_id=siesta-lite --output $LIBS/siesta.zip
# Extract the contents of the zip file
unzip $LIBS/siesta.zip -d $LIBS
# Remove the zip file
rm $LIBS/siesta.zip
# Rename the folder
mv $LIBS/siesta* $LIBS/siesta