diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-13 01:50:15 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-13 01:50:15 -0400 |
commit | d3daa9b5dd017908a450533dcf2ef34bb7a09cfd (patch) | |
tree | 31221d109cf91fa1a8a1dc25cfad387ef27aa113 /tools/myacprep | |
parent | 49a1373debdd5dbcd12721a110fab16fab8b40db (diff) | |
download | fork-ledger-d3daa9b5dd017908a450533dcf2ef34bb7a09cfd.tar.gz fork-ledger-d3daa9b5dd017908a450533dcf2ef34bb7a09cfd.tar.bz2 fork-ledger-d3daa9b5dd017908a450533dcf2ef34bb7a09cfd.zip |
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.
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 "$@" |