summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-24 00:34:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-24 00:34:19 -0400
commit4d9339a08a8133526696a59484460518e9c19737 (patch)
treee0663edd12945c40ec37169e40ecf6d4a83c9235
parentcb0a436d94b231956f42020ceebafab24ae63b4c (diff)
downloadfork-ledger-4d9339a08a8133526696a59484460518e9c19737.tar.gz
fork-ledger-4d9339a08a8133526696a59484460518e9c19737.tar.bz2
fork-ledger-4d9339a08a8133526696a59484460518e9c19737.zip
Support the --local option to acprep, which says not to use ~/Products.
-rwxr-xr-xacprep14
1 files changed, 9 insertions, 5 deletions
diff --git a/acprep b/acprep
index b2a4ec27..947ec927 100755
--- a/acprep
+++ b/acprep
@@ -19,12 +19,16 @@ autoconf
HERE="$PWD"
-if [ -d "$HOME/Products" ]; then
- projdir="$HOME/Products/$(basename $HERE)"
- if [ ! -d "$projdir" ]; then
- mkdir -p "$projdir"
+if [ "$1" != "--local" ]; then
+ if [ -d "$HOME/Products" ]; then
+ projdir="$HOME/Products/$(basename $HERE)"
+ if [ ! -d "$projdir" ]; then
+ mkdir -p "$projdir"
+ fi
+ cd "$projdir" || (echo "Cannot change to $projdir"; exit 1)
fi
- cd "$projdir" || (echo "Cannot change to $projdir"; exit 1)
+else
+ shift 1
fi
INCDIRS="-I/opt/local/include -I/usr/local/include -I/usr/include/httpd/xml"