ledger/tools/myacprep
John Wiegley d3daa9b5dd Reorganized the way acprep handles switches
Now it takes --warn and --debug flags, and I use tools/myacprep to
collect together all the flags I normally use in development.
2009-02-13 01:50:15 -04:00

20 lines
506 B
Bash
Executable file

#!/bin/sh
OUT=$HOME/Products/ledger
if [ "$1" = "--local" ]; then
OUT=""
fi
SWITCHES=""
SWITCHES="$SWITCHES --pch" # build using pre-compiled headers
SWITCHES="$SWITCHES --warn" # show full compiler warnings
SWITCHES="$SWITCHES --debug" # enable debug code generation
SWITCHES="$SWITCHES --devel" # use GLIBCXX_DEBUG if possible
if [ -n "$OUT" -a -d "$OUT" ]; then
# build in another directory, if it exists and there were no
SWITCHES="$SWITCHES --output $OUT"
fi
./acprep $SWITCHES "$@"