Added --local option to acprep.
This commit is contained in:
parent
48b46a23b1
commit
7059d5d8ca
2 changed files with 61 additions and 2 deletions
12
acprep
12
acprep
|
|
@ -50,13 +50,18 @@ fi
|
|||
# Building the command-line tool as a shared library is a luxury,
|
||||
# since there are no clients except a GUI tool which might use it (and
|
||||
# that is built again anyway by Xcode).
|
||||
SWITCHES="--disable-shared --enable-pch"
|
||||
SWITCHES=""
|
||||
CPPFLAGS="$INCDIRS"
|
||||
LDFLAGS="$LIBDIRS"
|
||||
LOCAL=false
|
||||
|
||||
|
||||
while [ -n "$1" ]; do
|
||||
case "$1" in
|
||||
--devel)
|
||||
SWITCHES="$SWITCHES --disable-shared --enable-pch"
|
||||
;;
|
||||
|
||||
--debug)
|
||||
SWITCHES="$SWITCHES --enable-debug"
|
||||
CXXFLAGS="$CXXFLAGS -g" ;;
|
||||
|
|
@ -85,6 +90,9 @@ while [ -n "$1" ]; do
|
|||
--opt)
|
||||
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -O3" ;;
|
||||
|
||||
--local)
|
||||
LOCAL=true ;;
|
||||
|
||||
*)
|
||||
break ;;
|
||||
esac
|
||||
|
|
@ -94,7 +102,7 @@ done
|
|||
|
||||
HERE="$PWD"
|
||||
|
||||
if [ -d "$HOME/Products" ]; then
|
||||
if [ "$LOCAL" = "false" -a -d "$HOME/Products" ]; then
|
||||
version=""
|
||||
if [ -x pending/version ]; then
|
||||
version="-$(pending/version)"
|
||||
|
|
|
|||
51
verify.sh
Executable file
51
verify.sh
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
#!/bin/bash
|
||||
|
||||
TMPDIR=$HOME/tmp
|
||||
|
||||
if [ -d $HOME/src/ledger/.git ]; then
|
||||
LEDGER_GIT=$HOME/src/ledger
|
||||
else
|
||||
LEDGER_GIT=http://newartisans.com/ledger.git
|
||||
fi
|
||||
|
||||
cd $TMPDIR
|
||||
|
||||
mkdir ledger || exit 1
|
||||
|
||||
cd ledger
|
||||
git clone $LEDGER_GIT local_git || exit 1
|
||||
|
||||
git clone -l local_git distcheck || exit 1
|
||||
cd distcheck || exit 1
|
||||
./acprep --local || exit 1
|
||||
make distcheck || exit 1
|
||||
|
||||
function build_ledger() {
|
||||
name=$1
|
||||
shift 1
|
||||
|
||||
cd $TMDIR/ledger || exit 1
|
||||
git clone -l local_git $name || exit 1
|
||||
cd $name || exit 1
|
||||
|
||||
./acprep --local "$@" || exit 1
|
||||
|
||||
(cd gdtoa && make) || exit 1
|
||||
make || exit 1
|
||||
make fullcheck || exit 1
|
||||
}
|
||||
|
||||
build_ledger(normal)
|
||||
build_ledger(devel, --devel)
|
||||
build_ledger(python, --python)
|
||||
|
||||
build_ledger(debug, --debug)
|
||||
build_ledger(boost_debug, --debug, --boost, d)
|
||||
build_ledger(debug_python, --debug, --python)
|
||||
|
||||
build_ledger(optimized, --opt)
|
||||
build_ledger(opt_python, --opt, --python)
|
||||
|
||||
rm -fr $TMPDIR/ledger || exit 1
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Reference in a new issue