tumble/bin/gruntc

13 lines
282 B
Plaintext
Raw Normal View History

2013-03-05 23:25:53 +00:00
#!/bin/sh
PROJECTPATH=$(dirname ${BASH_SOURCE})/..
PROJECTPATH="`cd ${PROJECTPATH}; pwd`"
SRC="$PROJECTPATH/grunt.coffee"
DST="$PROJECTPATH/.grunt.js"
if [ ! -f "$DST" -o "$SRC" -nt "$DST" ]; then
echo "Rebuilding $DST..."
coffee -cp $SRC > $DST
fi
grunt --config $DST $*