/
init.sh
200 lines (145 loc) · 4.72 KB
/
init.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#!/bin/sh
# Let's start with some settings
clear
BOWER="./bower"
COMPASS="./compass"
COMPOSER="./composer"
GRUNT="./grunt"
GUARD="./guard"
GULP="./gulp"
MAKE="./make"
NODE="./node"
NPM="./npm"
RAKE="./rake"
# Show options
printf "\n"
printf "Select an integration option: \n"
printf "\n"
printf "[ 1 ] - Bower \n"
printf "[ 2 ] - Grunt \n"
printf "[ 3 ] - Gulp \n"
printf "[ 4 ] - Compass \n"
printf "[ 5 ] - Composer \n"
printf "[ 6 ] - Node \n"
printf "[ 7 ] - NPM \n"
printf "[ 8 ] - Rake \n"
printf "[ 9 ] - Make \n"
printf "[ 10 ] - Guard \n"
printf "\n"
printf "[ 0 ] - Exit \n"
printf "\n"
read -p "Enter your choice: " input
if [ $input = "1" ]; then
# make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./bower/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Bower!\n"
fi
if [ $input = "2" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./grunt/* ./src
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Grunt!\n"
fi
if [ $input = "3" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./gulp/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${GULP} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE}
# All done!
printf "Ready to rock with Gulp!\n"
fi
if [ $input = "4" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./compass/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Compass!\n"
fi
if [ $input = "5" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./composer/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Composer!\n"
fi
if [ $input = "6" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp -rf ./node/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with NPM!\n"
fi
if [ $input = "7" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp -rf ./npm/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with NPM!\n"
fi
if [ $input = "8" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./rake/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Rake!\n"
fi
if [ $input = "9" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./make/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Make!\n"
fi
if [ $input = "10" ]; then
# make and make and copy files to ./src directory
printf "Copying files...\n"
mkdir -p ./src
cp ./guard/* ./src/
# remove unecessary files
printf "Removing stuff you don't want...\n"
rm -rf .git README.md init.sh ${BOWER} ${GRUNT} ${COMPASS} ${COMPOSER} ${NODE} ${NPM} ${RAKE} ${MAKE} ${GUARD}
# All done!
printf "Ready to rock with Make!\n"
fi
if [ $input = "0" ]; then
printf "Bye bye!\n"
exit
fi