ledger/tools/nix-build.sh
2016-11-13 12:29:46 -08:00

20 lines
697 B
Bash
Executable file

#!/bin/sh
flavor=$1
shift 1
JOBS=-j$(sysctl -n hw.activecpu)
OPTIONS="$flavor --debug --python --ninja $JOBS"
#OPTIONS="$flavor --debug --python --ninja --doxygen $JOBS"
time nice -n 20 nix-shell -p \
cmake boost gmp mpfr libedit python texinfo gnused \
ninja doxygen \
--command "./acprep $OPTIONS make $JOBS $@" && \
time nice -n 20 nix-shell -p \
cmake boost gmp mpfr libedit python texinfo gnused \
ninja doxygen \
--command "./acprep $OPTIONS check $JOBS $@" \
\