-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
executable file
·36 lines (26 loc) · 859 Bytes
/
build.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
#!/bin/sh
rm -rf build
mkdir -p build/img
mkdir -p build/less
mkdir -p build/js
cd lib/bootstrap
git checkout v2.1.0
make bootstrap
cd ../..
cp lib/bootstrap/bootstrap/js/bootstrap.js build/js
touch build/less/bootstrap.less
cat lib/bootstrap/less/reset.less |grep -v @import >> build/less/bootstrap.less
cat lib/bootstrap/less/bootstrap.less |grep -v @import >> build/less/bootstrap.less
for f in `ls lib/bootstrap/less/*.less | grep -v "bootstrap\.less" | grep -v "reset\.less"`
do
echo "Processing $f"
cat `pwd`/$f |grep -v @import >> build/less/bootstrap.less
done
cat lib/bootstrap-override.less >> build/less/bootstrap.less
cp lib/bootstrap/img/glyphicons-halflings.png build/img
cp lib/bootstrap/img/glyphicons-halflings-white.png build/img
cd lib/bootstrap
git reset --hard HEAD
git checkout master
cd ../..
rm -rf lib/bootstrap/bootstrap