diff options
Diffstat (limited to 'tools/myacprep')
-rwxr-xr-x | tools/myacprep | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/myacprep b/tools/myacprep new file mode 100755 index 00000000..1775c6ca --- /dev/null +++ b/tools/myacprep @@ -0,0 +1,20 @@ +#!/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 "$@" |