#!/bin/bash # SASS # options=""; if [ "$1" == "-d" ]; #debud mode ./css.sh -d then options="--style compact --debug-info" else options="--style compact" fi cd ./www/css rm -f site.css admin.css ckeditor.css modules/wideSlide.css sass $options --watch ./scss/:. ./modules/scss/:./modules # LESS # # cd ./www/css # rm -f site.css admin.css # inotifywait -r -m -e create -e modify -e delete ./less | while read FILE; do # lessc < less/site.less > site.css & # lessc < less/admin.less > admin.css; # done # INOTIFY #cd ./www/css #options=""; #if [ "$1" == "-d" ]; #debud mode ./css.sh -d # then # options="--style compact --debug-info --no-cache" # else # options="--style compressed --no-cache" #fi # #rm -f site.css admin.css #sass $options scss/site.scss:site.css scss/admin.scss:admin.css # #inotifywait -r -m -e create -e modify -e delete ./scss | while read FILE; do # sass $options --update scss/site.scss:site.css scss/admin.scss:admin.css; #done