forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsass.sh
More file actions
executable file
·38 lines (30 loc) · 725 Bytes
/
Copy pathsass.sh
File metadata and controls
executable file
·38 lines (30 loc) · 725 Bytes
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
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "You must specify a command from the following: build, develop"
exit 0
fi
__build() {
echo "Building Kubernetes website CSS from Sass sources..."
for filename in case-study-styles styles; do
echo $filename
sass \
--style=compressed \
sass/$filename.sass static/css/$filename.css
done
echo "Done building CSS!"
}
__develop() {
echo "Watching Sass sources for changes..."
sass \
--watch \
sass/styles.sass:static/css/styles.css \
sass/case-study-styles.sass:static/css/case-study-styles.css
}
case $1 in
build)
__build
;;
develop)
__develop
;;
esac