blob: 7c4e2c143b912894cf11ef5c84ff04fedd7a5712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
OUT=$HOME/Products/ledger
if [ "$1" = "--local" ]; then
OUT=""
elif [ "$1" = "--output" ]; 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 "$@"
|