13 lines
282 B
Plaintext
13 lines
282 B
Plaintext
|
#!/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 $*
|