parse-sass.sh
Bourne-Again shell script, ASCII text executable
1
#!/bin/bash
2
3
if [ ! "$(which sassc 2> /dev/null)" ]; then
4
echo sassc needs to be installed to generate the css.
5
exit 1
6
fi
7
8
SASSC_OPT="-M -t expanded"
9
10
echo Generating the css...
11
12
for color in '' '-dark' '-light' ; do
13
sassc $SASSC_OPT src/gtk-3.0/3.18/gtk${color}.{scss,css}
14
15
for size in '' '-compact' ; do
16
for version in '3.20' '3.22' ; do
17
sassc $SASSC_OPT src/gtk-3.0/${version}/gtk${color}${size}.{scss,css}
18
done
19
20
# This gnome-shell theme can skip versions '3.20' & '2.22'
21
for version in '3.18' '3.24' ; do
22
sassc $SASSC_OPT src/gnome-shell/${version}/gnome-shell${color}${size}.{scss,css}
23
done
24
done
25
done
26