From 7b2d75904c8f93cbec40bdc3905ba81f48f84853 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Mar 2009 15:29:27 -0400 Subject: Several improvements to how directories are chosen --- tools/build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/build') 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 "$@" -- cgit v1.2.3