This repository was archived by the owner on Oct 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·89 lines (59 loc) · 1.69 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·89 lines (59 loc) · 1.69 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/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 "# Installing the submodules"
echo "#"
echo "###############################"
git submodule init
git submodule update
echo
echo "###############################"
echo "#"
echo "# Downloading jQuery Mobile"
echo "#"
echo "###############################"
curl http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.zip --output $LIBS/jqm.zip
# Extract zip file contents
unzip $LIBS/jqm.zip -d $LIBS
# Rename the folder
mv $LIBS/jquery.mobile-1.1.0 $LIBS/jqm/
# Remove the zip file
rm $LIBS/jqm.zip
# Download jQuery itself
curl http://code.jquery.com/jquery-1.7.2.min.js --output $LIBS/jqm/jquery-1.7.2.min.js
echo
echo "###############################"
echo "#"
echo "# Downloading Sencha Touch"
echo "#"
echo "###############################"
curl http://cdn.sencha.io/touch/sencha-touch-2.0.1-gpl.zip --output $LIBS/sencha.zip
# Extract the contents of the zip file
unzip $LIBS/sencha.zip -d $LIBS
# Rename the folder
mv $LIBS/sencha-touch-2.0.1/ $LIBS/sencha/
# Remove the zip file
rm $LIBS/sencha.zip
echo
echo "###############################"
echo "#"
echo "# Downloading PhoneGap"
echo "#"
echo "###############################"
curl https://github.com/phonegap/phonegap/zipball/1.7.0 --location --output $LIBS/phonegap.zip
# Extract the contents of the zip file
unzip $LIBS/phonegap.zip -d $LIBS
# Rename the folder
mv $LIBS/phonegap-phonegap-475bfd2/ $LIBS/phonegap
# Remove the zip file
rm $LIBS/phonegap.zip