summaryrefslogtreecommitdiff
path: root/tools/myacprep
blob: 1775c6ca249dde221a97190f5a664507de7e8fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 "$@"