summaryrefslogtreecommitdiff
path: root/tools/build.sh
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-07-30 23:22:42 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-07-30 23:24:04 -0500
commit14ab4f7775fe203e6e5cd2b9cb4d364c465c4e4e (patch)
tree50c8ebbffd4682e055ddd215421bd36c2db8c789 /tools/build.sh
parent39ce225004e88d397ca3fd3ce2051d54eedaecc0 (diff)
downloadfork-ledger-14ab4f7775fe203e6e5cd2b9cb4d364c465c4e4e.tar.gz
fork-ledger-14ab4f7775fe203e6e5cd2b9cb4d364c465c4e4e.tar.bz2
fork-ledger-14ab4f7775fe203e6e5cd2b9cb4d364c465c4e4e.zip
Updated to Boost 1.50
Diffstat (limited to 'tools/build.sh')
-rwxr-xr-xtools/build.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/build.sh b/tools/build.sh
index 185fe791..a37b06f4 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -3,10 +3,13 @@
flavor=$1
shift 1
-time ( \
- cd ~/src/ledger ; \
- PATH=/usr/local/bin:/opt/local/bin:$PATH \
- nice -n 20 ./acprep $flavor --debug --python --doxygen make "$@" && \
- PATH=/usr/local/bin:/opt/local/bin:$PATH \
- nice -n 20 ./acprep $flavor --debug --python --doxygen check "$@" \
-) \ No newline at end of file
+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 "$@" && \
+ PATH=/usr/local/bin:/opt/local/bin:$PATH \
+ nice -n 20 ./acprep $OPTIONS check "$@" \
+)