summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-20 19:34:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-20 19:34:25 -0400
commitcb0a436d94b231956f42020ceebafab24ae63b4c (patch)
treee05984a0319641b81e19c99cda8917aa43c7cd33 /acprep
parent7dd43dd334d4361b92a64d8d3e9ec85a267e98c6 (diff)
downloadfork-ledger-cb0a436d94b231956f42020ceebafab24ae63b4c.tar.gz
fork-ledger-cb0a436d94b231956f42020ceebafab24ae63b4c.tar.bz2
fork-ledger-cb0a436d94b231956f42020ceebafab24ae63b4c.zip
Fixed acprep so that it builds Ledger again. Somehow it got completely
broken at some point.
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep19
1 files changed, 13 insertions, 6 deletions
diff --git a/acprep b/acprep
index ae4e8369..b2a4ec27 100755
--- a/acprep
+++ b/acprep
@@ -35,23 +35,30 @@ LIBDIRS="-L/opt/local/lib -L/usr/local/lib"
if [ "$1" = "--debug" ]; then
shift 1
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
--enable-debug --enable-python "$@"
elif [ "$1" = "--opt" ]; then
shift 1
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC" "$@"
elif [ "$1" = "--flat-opt" ]; then
shift 1
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450" "$@"
elif [ "$1" = "--safe-opt" ]; then
shift 1
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1" "$@"
elif [ "$1" = "--perf" ]; then
shift 1
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@"
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@"
+elif [ "$1" = "--python" ]; then
+ shift 1
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
+ --enable-python "$@"
+else
+ shift 1
+ $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" "$@"
fi
-rm AUTHORS COPYING
+rm -f AUTHORS COPYING