From 4d9339a08a8133526696a59484460518e9c19737 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 24 Apr 2008 00:34:19 -0400 Subject: Support the --local option to acprep, which says not to use ~/Products. --- acprep | 14 +++++++++----- 1 file 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" -- cgit v1.2.3