ledger/tools/build.sh
2014-04-13 23:26:14 -05:00

16 lines
514 B
Bash
Executable file

#!/bin/sh
flavor=$1
shift 1
JOBS=-j$(sysctl -n hw.activecpu)
#OPTIONS="$flavor --debug --python --ninja --doxygen $JOBS"
OPTIONS="$flavor --debug --ninja $JOBS"
time ( \
cd ~/src/ledger ; \
PATH=/usr/local/bin:/opt/local/bin:$PATH \
nice -n 20 ./acprep $OPTIONS make $JOBS "$@" && \
PATH=/usr/local/bin:/opt/local/bin:$PATH \
nice -n 20 ./acprep $OPTIONS check $JOBS "$@" \
)