diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-13 00:42:25 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 00:42:25 -0400 |
commit | 40f553228f5a28034c6635fdcb4c86af28a385ed (patch) | |
tree | 2c40305c9f9841a4c3d453a4a5c49ec69056b4b2 /tools/pre-commit | |
parent | 556211e623cad88213e5087b5c9c36e754d9aa02 (diff) | |
parent | b1b4e2aadff5983d443d70c09ea86a41b015873f (diff) | |
download | fork-ledger-40f553228f5a28034c6635fdcb4c86af28a385ed.tar.gz fork-ledger-40f553228f5a28034c6635fdcb4c86af28a385ed.tar.bz2 fork-ledger-40f553228f5a28034c6635fdcb4c86af28a385ed.zip |
Merge branch 'next'
Diffstat (limited to 'tools/pre-commit')
-rwxr-xr-x | tools/pre-commit | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/pre-commit b/tools/pre-commit index 50a32dbd..db47cc45 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Exit with status 1 if any command below fails set -e @@ -12,6 +12,9 @@ fi # These are the locations I keep my temporary source and build trees in PRODUCTS=$(./acprep products) # generates a build directory name such as # ~/Products/ledger +if echo $PRODUCTS | grep -qv ledger; then + PRODUCTS=$PRODUCTS/ledger +fi TMPDIR=$PRODUCTS/pre-commit MIRROR=$PRODUCTS/pre-commit-mirror @@ -56,6 +59,7 @@ fi # Finally, (re)build this proposed source tree and see if it passes # muster. + if [ -f acprep ]; then nice -n 20 ./acprep default --warn make check else |