summaryrefslogtreecommitdiff
path: root/tools/myacprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-08 00:55:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-08 02:07:46 -0400
commit2db263909b31cc7ad948d4890d6a9071c07cada2 (patch)
treea8e80a9ae829af4059c0b0fde410b70e3c201daa /tools/myacprep
parent8c8fbb75a57f7cf408d5842864cb4e46bf994bfa (diff)
downloadfork-ledger-2db263909b31cc7ad948d4890d6a9071c07cada2.tar.gz
fork-ledger-2db263909b31cc7ad948d4890d6a9071c07cada2.tar.bz2
fork-ledger-2db263909b31cc7ad948d4890d6a9071c07cada2.zip
Changed the handling of some options in myacprep
Diffstat (limited to 'tools/myacprep')
-rwxr-xr-xtools/myacprep18
1 files changed, 14 insertions, 4 deletions
diff --git a/tools/myacprep b/tools/myacprep
index fab2e58b..deea104e 100755
--- a/tools/myacprep
+++ b/tools/myacprep
@@ -17,17 +17,27 @@ while [ -n "$1" ]; do
shift 1 ;;
--gprof)
OUT="$OUT/ledger-gprof"
- SWITCHES="$SWITCHES $1 --release"
+ SWITCHES="$SWITCHES $1 --release --pch"
saw_opt=true
shift 1 ;;
--gcov)
OUT="$OUT/ledger-gcov"
- SWITCHES="$SWITCHES $1 --debug --devel"
+ SWITCHES="$SWITCHES $1 --release --pch"
saw_opt=true
shift 1 ;;
--opt)
OUT="$OUT/ledger-opt"
- SWITCHES="$SWITCHES $1 --release"
+ SWITCHES="$SWITCHES $1 --release --pch --warn"
+ saw_opt=true
+ shift 1 ;;
+ --std)
+ OUT="$OUT/ledger-std"
+ SWITCHES="$SWITCHES --release --pch --warn"
+ saw_opt=true
+ shift 1 ;;
+ --debug)
+ OUT="$OUT/ledger-debug"
+ SWITCHES="$SWITCHES $1 --pch --warn --devel"
saw_opt=true
shift 1 ;;
*)
@@ -53,7 +63,7 @@ fi
./acprep $SWITCHES
-if [ -n "$OUT" ]; then
+if [ $saw_opt = false -a -n "$OUT" ]; then
ln -sf $OUT/TAGS .
ln -sf $OUT/ledger .
fi