#!/bin/bash # SASS # options=""; if [ "$1" == "-d" ]; #debud mode ./css.sh -d then options="--style compact" else if [ "$1" == "-dd" ]; #debud mode 2 ./css.sh -dd then options="--style compact --sourcemap=none --debug-info" else options="--style compact --sourcemap=none" fi fi cd ./www/css rm -f site.css admin.css ckeditor.css modules/wideSlide.css print/admin-print.css print/site-print.css sass $options --watch ./scss/:. ./modules/scss/:./modules ./print/scss/:./print # 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