diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-29 03:22:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:39:07 -0400 |
commit | c9b69169cdddf6c8450fe2d4a00d3ebfd9ae8bd3 (patch) | |
tree | d9a3f477633014e00854b9ee4f809774cd336638 | |
parent | 09363b4ca4e15f00ddd04de3feee2d2b519983bd (diff) | |
download | fork-ledger-c9b69169cdddf6c8450fe2d4a00d3ebfd9ae8bd3.tar.gz fork-ledger-c9b69169cdddf6c8450fe2d4a00d3ebfd9ae8bd3.tar.bz2 fork-ledger-c9b69169cdddf6c8450fe2d4a00d3ebfd9ae8bd3.zip |
Removed hand-made auto build scripts
-rwxr-xr-x | run_verify.sh | 32 | ||||
-rwxr-xr-x | verify.sh | 98 |
2 files changed, 0 insertions, 130 deletions
diff --git a/run_verify.sh b/run_verify.sh deleted file mode 100755 index 236a9e67..00000000 --- a/run_verify.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# This script can be from cron to regularly verify that Ledger is -# sane. Such a cron entry might look like this, assuming you keep a -# recent working tree in ~/src/ledger, and that you want all of the -# temporary build products kept in /tmp: -# -# 0 0 * * * $HOME/src/ledger/run_verify.sh /tmp -# -# On both success and failure the build log and build products are -# left in the temporary directory for later examination if desired. - -SRCDIR=$(dirname $0) -if [ -z "$SRCDIR" ]; then - SRCDIR=$(pwd) -fi - -if [ -n "$1" -a -d "$1" ]; then - TMPDIR="$1" -else - TMPDIR=/tmp -fi - -cd $TMPDIR || exit 1 - -cp -p "$SRCDIR"/verify.sh . || exit 1 - -(./verify.sh > verify.out 2>&1 || (cat verify.out; exit 1)) - -rm -f verify.sh - -exit 0 diff --git a/verify.sh b/verify.sh deleted file mode 100755 index 14f3e3f4..00000000 --- a/verify.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash - -MY_CPPFLAGS="-I/usr/local/include -I/usr/local/include/boost -I/sw/include" -MY_LDFLAGS="-L/usr/local/lib -L/sw/lib" - -# Setup the temporary directory where all these copies are ledger are -# going to be built. Remove it if it's already there. - -if [ -n "$1" -a -d "$1" ]; then - TMPDIR="$1" -elif [ -d $HOME/tmp ]; then - TMPDIR=$HOME/tmp -else - TMPDIR=/tmp -fi - -if [ -d $TMPDIR/ledger ]; then - find $TMPDIR/ledger -print0 | xargs -0 chmod u+w - rm -fr $TMPDIR/ledger || exit 1 -fi - -cd $TMPDIR || exit 1 -mkdir ledger || exit 1 -cd ledger || exit 1 - -# Pull the Ledger sources from the Subversion repository. - -LEDGER_SVN=https://ledger.svn.sourceforge.net/svnroot/ledger - -if [ -d $HOME/Projects/ledger ]; then - cp -Rp $HOME/Projects/ledger local_svn -fi - -# Create a reference copy of the sources in a pristine working tree -# that will not be modified. Copies are made from this copy to avoid -# having to go to the network each time. The function -# `dup_working_tree' creates a copy for us, either cheaply using git, -# or via an ordinary copy if we're using subversion. - -svn checkout $LEDGER_SVN/trunk local_svn - -function dup_working_tree() { - cp -Rp local_svn "$1" || exit 1 -} - -# These functions understand how to do a distcheck build for ledger -# completely from scratch. - -function build_distcheck_from_scratch() { - cd $TMPDIR/ledger || exit 1 - dup_working_tree distcheck_scratch || exit 1 - cd distcheck_scratch || exit 1 - ./acprep --local || exit 1 - make CPPFLAGS="$MY_CPPFLAGS" LDFLAGS="$MY_LDFLAGS" distcheck || exit 1 -} - -# Finally, we have the ordinary `build_ledger' function, which builds -# ledger from scratch using whichever acprep arguments have been -# passed in. - -function build_ledger() { - name=$1 - shift 1 - - cd $TMPDIR/ledger || exit 1 - dup_working_tree $name || exit 1 - cd $name || exit 1 - - ./acprep --local "$@" || exit 1 - - (cd gdtoa && make) || exit 1 - make || exit 1 - - if [ "$1" = "--opt" ]; then - make check || exit 1 - else - make fullcheck || exit 1 - fi -} - -# With all of that defined, now build ledger in all its various -# flavors, do a "fullcheck" for each non-optimized one (which uses -# valgrind on Linux, and gmalloc on OS/X), and a "check" for each -# optimized one. Note that this will take a long while! - -build_distcheck_from_scratch || exit 1 - -build_ledger normal || exit 1 -build_ledger python --python || exit 1 - -build_ledger debug --debug || exit 1 -build_ledger debug_python --debug --python || exit 1 -#build_ledger boost_debug --debug --boost d || exit 1 - -build_ledger optimized --opt || exit 1 -build_ledger opt_python --opt --python || exit 1 - -exit 0 |