summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build.sh18
-rwxr-xr-xtools/gendocs.sh2
2 files changed, 12 insertions, 8 deletions
diff --git a/tools/build.sh b/tools/build.sh
index 185fe791..ba563e34 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -3,10 +3,14 @@
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 --ninja --doxygen $JOBS"
+OPTIONS="$OPTIONS --prefix /usr/local/Cellar/ledger/HEAD"
+
+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 "$@" \
+)
diff --git a/tools/gendocs.sh b/tools/gendocs.sh
index 55933b13..9126a406 100755
--- a/tools/gendocs.sh
+++ b/tools/gendocs.sh
@@ -2,4 +2,4 @@
echo "===================================== Making Info..."
makeinfo ledger3.texi
echo "===================================== Making PDF..."
-texi2pdf ledger3.texi
+texi2pdf --quiet --batch ledger3.texi