diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-24 00:34:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-24 00:34:19 -0400 |
commit | 4d9339a08a8133526696a59484460518e9c19737 (patch) | |
tree | e0663edd12945c40ec37169e40ecf6d4a83c9235 | |
parent | cb0a436d94b231956f42020ceebafab24ae63b4c (diff) | |
download | fork-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-x | acprep | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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" |