Source

bin / lc

Full commit
#!/bin/bash
#
# Compile less.file.css into file.css
# Install lesscss with npm install -g less

IN=$1

if [ -z $IN ]; then
    echo 'No parameter given'
    exit 1
fi

while (true) do
    inotifywait -e modify $IN
    lessc -x $IN > ${IN/less./}
done