tumble/bin/gruntc

13 lines
282 B
Bash
Executable File

#!/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 $*