summaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-08 15:29:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-08 16:09:33 -0400
commit7b2d75904c8f93cbec40bdc3905ba81f48f84853 (patch)
tree66810cfc85ec4f27bea3e3ecab470aa49d13b38a /tools/build
parentdb70bb1d044a867cd517728fdf03a1b12f27bbc8 (diff)
downloadfork-ledger-7b2d75904c8f93cbec40bdc3905ba81f48f84853.tar.gz
fork-ledger-7b2d75904c8f93cbec40bdc3905ba81f48f84853.tar.bz2
fork-ledger-7b2d75904c8f93cbec40bdc3905ba81f48f84853.zip
Several improvements to how directories are chosen
Diffstat (limited to 'tools/build')
-rwxr-xr-xtools/build9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/build b/tools/build
index 05c7d75a..d2753a11 100755
--- a/tools/build
+++ b/tools/build
@@ -3,9 +3,12 @@
set -e
SRCDIR=$(pwd)
+OUTPUT=$(tools/outdir)
+SWITCHES=""
-if [ -d ~/Products/ledger ]; then
- cd ~/Products/ledger
+if [ -n "$OUTPUT" -a -d "$OUTPUT" ]; then
+ cd "$OUTPUT"
+ SWITCHES="--output $OUTPUT"
fi
if [ ! -f Makefile -o \
@@ -13,7 +16,7 @@ if [ ! -f Makefile -o \
$SRCDIR/configure.ac -nt Makefile -o \
$SRCDIR/acprep -nt Makefile -o \
$SRCDIR/myacprep -nt Makefile ]; then
- (cd $SRCDIR && tools/myacprep)
+ (cd $SRCDIR && tools/myacprep "$SWITCHES")
fi
make "$@"