summaryrefslogtreecommitdiff
path: root/tools/build.sh
blob: 2abf70b86733a0c5798f2c51b9d6c6bb04487ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

flavor=$1
shift 1

JOBS=-j$(sysctl -n hw.activecpu)
OPTIONS="$flavor --debug --python --doxygen $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 "$@"     \
)