1
|
#!/bin/bash
|
2
|
|
3
|
|
4
|
# check for compatible compass version
|
5
|
is_compatible=$(compass --version | grep "0.12.7")
|
6
|
|
7
|
if [[ -z "$is_compatible" ]]
|
8
|
then
|
9
|
echo "incompatible version of compass found: $(compass --version | head -n 1 - )"
|
10
|
echo "install version 0.12.7 by"
|
11
|
echo " sudo gem uninstall compass --all"
|
12
|
echo " sudo gem install compass --version 0.12.7"
|
13
|
exit -1
|
14
|
fi
|
15
|
|
16
|
# no need to specify the set the --debug-info here since we are
|
17
|
# using the development configuration file
|
18
|
compass clean
|
19
|
compass watch -c config-dev.rb ./
|
20
|
|