summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-11-13 12:29:46 -0800
committerJohn Wiegley <johnw@newartisans.com>2016-11-13 12:29:46 -0800
commitc384530c6f3157915a8c871ea860d132e6695c83 (patch)
treed03d5773a9a80c7dcc7a1b3d745315cc558326ab /tools
parente24315d22a22c0686dd1f1727f5cb8c73dec969e (diff)
downloadfork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.tar.gz
fork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.tar.bz2
fork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.zip
Add tools/nix-build.sh
Diffstat (limited to 'tools')
-rwxr-xr-xtools/nix-build.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/nix-build.sh b/tools/nix-build.sh
new file mode 100755
index 00000000..4712dbea
--- /dev/null
+++ b/tools/nix-build.sh
@@ -0,0 +1,20 @@
+#!/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 $@" \
+ \