Skip to content

Instantly share code, notes, and snippets.

@JonathanMH
Created July 8, 2012 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanMH/3070792 to your computer and use it in GitHub Desktop.
Save JonathanMH/3070792 to your computer and use it in GitHub Desktop.
temporary less_watch script
#!/bin/bash
LESSFILE=$1
CSSFILE=`basename $1 .less`.css
while true; do
inotifywait -e modify -e move -e close $LESSFILE && \
date && echo "compiling LESS" && \
lessc $LESSFILE> $CSSFILE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment