pulsar/script/compile-coffee

19 lines
444 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
# Because of the way xcodebuild invokes external scripts we need to load
# The Setup's environment ourselves. If this isn't done, things like the
# node shim won't be able to find the stuff they need.
2013-03-05 01:38:30 +04:00
if node --version > /dev/null 2>&1; then
# cool
elif [ -e /opt/github/env.sh ]; then
source /opt/github/env.sh
fi
INPUT_FILE="${1}"
OUTPUT_FILE="${2}"
node_modules/.bin/coffee -c -p "${INPUT_FILE}" > "${OUTPUT_FILE}"