forked from winponta/ongonline
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy-dev-ongonline.sh
50 lines (40 loc) · 1.65 KB
/
deploy-dev-ongonline.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
#! /bin/bash
THEME_PATH=./app/themes/ongonline
BOOTSTRAP=$THEME_PATH/css/bootstrap.css
BOOTSTRAP_MIN=$THEME_PATH/css/bootstrap.min.css
BOOTSTRAP_LESS=$THEME_PATH/assets/bootstrap-less/bootstrap.less
BOOTSTRAP_RESPONSIVE=$THEME_PATH/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE_MIN=$THEME_PATH/css/bootstrap-responsive.min.css
BOOTSTRAP_RESPONSIVE_LESS=$THEME_PATH/assets/bootstrap-less/responsive.less
BTSW=$THEME_PATH/css/bootswatch.css
BTSW_MIN=$THEME_PATH/css/bootswatch.min.css
BTSW_LESS=$THEME_PATH/assets/ong-less/bootswatch.less
ONG=$THEME_PATH/css/ong.css
ONG_MIN=$THEME_PATH/css/ong.min.css
ONG_LESS=$THEME_PATH/assets/ong-less/ong.less
DATE=`date +%I:%M%p`
CHECK=✔
HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
clear
echo "${HR}"
echo "Building Bootstrap..."
echo "${HR}"
recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
recess --compress ${BOOTSTRAP_LESS} > ${BOOTSTRAP_MIN}
recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE_MIN}
echo "Compiling and Compressing Bootstrap LESS with Recess... ${CHECK} Done"
echo "${HR}"
echo "Building Bootswatch..."
echo "${HR}"
#recess --compile ${BTSW_LESS} > ${BTSW}
recess --compress ${BTSW} > ${BTSW_MIN}
echo "Compiling and Compressing BOOTSWATCH LESS with Recess... ${CHECK} Done"
echo "${HR}"
echo "Building ONG..."
echo "${HR}"
recess --compile ${ONG_LESS} > ${ONG}
recess --compress ${ONG_LESS} > ${ONG_MIN}
echo "Compiling and Compressing ONG LESS with Recess... ${CHECK} Done"
echo $HR
echo ${CHECK} 'FINALIZADO'