diff options
author | John Wiegley <johnw@newartisans.com> | 2016-11-13 12:29:46 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2016-11-13 12:29:46 -0800 |
commit | c384530c6f3157915a8c871ea860d132e6695c83 (patch) | |
tree | d03d5773a9a80c7dcc7a1b3d745315cc558326ab /tools | |
parent | e24315d22a22c0686dd1f1727f5cb8c73dec969e (diff) | |
download | fork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.tar.gz fork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.tar.bz2 fork-ledger-c384530c6f3157915a8c871ea860d132e6695c83.zip |
Add tools/nix-build.sh
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/nix-build.sh | 20 |
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 $@" \ + \ |