summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-11 07:20:54 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:43 -0400
commit7059d5d8ca8f3c120946b29b8d97f2f616b79b95 (patch)
tree16560c5f6a2d7b48c0251759ef87f8e1a5cc5236 /acprep
parent48b46a23b183fc576f7e999a166d1e130233032c (diff)
downloadfork-ledger-7059d5d8ca8f3c120946b29b8d97f2f616b79b95.tar.gz
fork-ledger-7059d5d8ca8f3c120946b29b8d97f2f616b79b95.tar.bz2
fork-ledger-7059d5d8ca8f3c120946b29b8d97f2f616b79b95.zip
Added --local option to acprep.
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep12
1 files changed, 10 insertions, 2 deletions
diff --git a/acprep b/acprep
index a3ecb60c..7f1b334e 100755
--- a/acprep
+++ b/acprep
@@ -50,13 +50,18 @@ fi
# Building the command-line tool as a shared library is a luxury,
# since there are no clients except a GUI tool which might use it (and
# that is built again anyway by Xcode).
-SWITCHES="--disable-shared --enable-pch"
+SWITCHES=""
CPPFLAGS="$INCDIRS"
LDFLAGS="$LIBDIRS"
+LOCAL=false
while [ -n "$1" ]; do
case "$1" in
+ --devel)
+ SWITCHES="$SWITCHES --disable-shared --enable-pch"
+ ;;
+
--debug)
SWITCHES="$SWITCHES --enable-debug"
CXXFLAGS="$CXXFLAGS -g" ;;
@@ -85,6 +90,9 @@ while [ -n "$1" ]; do
--opt)
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -O3" ;;
+ --local)
+ LOCAL=true ;;
+
*)
break ;;
esac
@@ -94,7 +102,7 @@ done
HERE="$PWD"
-if [ -d "$HOME/Products" ]; then
+if [ "$LOCAL" = "false" -a -d "$HOME/Products" ]; then
version=""
if [ -x pending/version ]; then
version="-$(pending/version)"