forked from najmiter/darkcircles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbro.sh
33 lines (27 loc) · 757 Bytes
/
bro.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
if [ "$1" == "prod" ]; then
echo "Minifying and copying the latest files..."
minify script/koochi-koochi.js > prod/koochi-koochi.js
minify css/reset.css > prod/reset.css
echo "Zipping the directory..."
zip prod.zip prod/*
elif [ "$1" == "buildprod" ]; then
bash bro.sh
bash bro.sh prod
elif [ "$1" == "push" ]; then
if [ "$2" == "" ]; then
echo "Please give a push message..."
else
echo "Adding the commit..."
git add .
echo "Commiting with the message '$2'..."
git commit -m "$2"
echo "Pushing..."
git push
fi
else
echo Building...
cat dev/css/* > dev/style.css
minify dev/style.css > dev/koochi-koochi.css
./a.out
rm dev/style.css
fi