build.sh 514 B

1234567891011121314151617
  1. #!/bin/sh
  2. flavor=$1
  3. shift 1
  4. JOBS=-j$(sysctl -n hw.activecpu)
  5. #OPTIONS="$flavor --debug --python --ninja --doxygen $JOBS"
  6. OPTIONS="$flavor --debug --ninja $JOBS"
  7. time ( \
  8. cd ~/src/ledger ; \
  9. PATH=/usr/local/bin:/opt/local/bin:$PATH \
  10. nice -n 20 ./acprep $OPTIONS make $JOBS "$@" && \
  11. PATH=/usr/local/bin:/opt/local/bin:$PATH \
  12. nice -n 20 ./acprep $OPTIONS check $JOBS "$@" \
  13. )