echo;
echo "Running $$test";
echo;
- valgrind --tool=memcheck --error-exitcode=99 --suppressions=valgrind.sup
+ valgrind --tool=memcheck --error-exitcode=99 --suppressions=tools/valgrind.sup
$$test $BOOSTTESTARGS;
[ $$? -ne 99 ] || exit 1;
done
+++ /dev/null
-#!/bin/bash -e
-
-PATH=${HOME}/bin:${PATH}
-LOGDIR=${HOME}/log
-
-cd /home/senf/src
-
-rm -f ${LOGDIR}/build.log ${LOGDIR}/upload.log
-touch ${LOGDIR}/build.log ${LOGDIR}/upload.log
-
-trap 'exec >/dev/null 2>&1; cat ${LOGDIR}/build.log ${LOGDIR}/upload.log 1>&3; exit 1' ERR
-
-exec 3>&1 > ${LOGDIR}/build.log 2>&1
-
-echo -n '# Starting build at '; date --utc
-
-if [ "$1" == "-c" ]; then
- echo '$ find -mindepth 1 -maxdepth 1 ! -name .svn | xargs rm -rf'
- find -mindepth 1 -maxdepth 1 ! -name .svn | xargs rm -rf
-fi
-
-echo '$ svn update'
-svn update | tee ${LOGDIR}/svn-update.log
-if grep -qv '^At ' ${LOGDIR}/svn-update.log; then
- echo '$ rm -f doc/html/html.stamp'
- rm -f doc/html/html.stamp
-fi
-rm -f ${LOGDIR}/svn-update.log
-
-echo "\$ nice ${SCONS:-scons} -kj2 all ${DOXYGEN:+DOXYGEN="$DOXYGEN"}"
-nice ${SCONS:-scons} -kj2 all ${DOXYGEN:+DOXYGEN="$DOXYGEN"}
-echo "\$ nice ${SCONS:-scons} all ${DOXYGEN:+DOXYGEN="$DOXYGEN"}"
-nice ${SCONS:-scons} all ${DOXYGEN:+DOXYGEN="$DOXYGEN"}
-echo "\$ nice ${SCONS:-scons} linklint ${DOXYGEN:+DOXYGEN="$DOXYGEN"}"
-nice ${SCONS:-scons} linklint ${DOXYGEN:+DOXYGEN="$DOXYGEN"}
-echo "\$ nice ${SCONS:-scons} fixlinks ${DOXYGEN:+DOXYGEN="$DOXYGEN"}"
-nice ${SCONS:-scons} fixlinks ${DOXYGEN:+DOXYGEN="$DOXYGEN"}
-echo -n '# Build completed at '; date --utc
-
-exec > ${LOGDIR}/upload.log 2>&1
-
-if [ "$1" == "-c" ]; then
- cp ${LOGDIR}/build.log ${LOGDIR}/build-full.log
-fi
-
-echo -n '# Upload started at '; date --utc
-rsync -rzv --del --delete-excluded \
- --filter="- .svn" \
- --filter="- linklint" \
- --filter="- debian" \
- --filter="+ */" \
- --filter="+ *.html" \
- --filter="+ *.css" \
- --filter="+ *.png" \
- --filter="+ *.php" \
- --filter="+ *.idx" \
- --filter="+ *.log" \
- --filter="- *" \
- . g0dil@shell.berlios.de://home/groups/senf/htdocs/src
-echo -n '# Upload completed at '; date --utc
-
-exec >/dev/null 2>&1
-scp ${LOGDIR}/upload.log g0dil@shell.berlios.de:/home/groups/senf/htdocs/upload.log
+++ /dev/null
-#!/bin/sh -e
-#
-# Dump the complete subversion repository from berlios into the dumps/ folder
-
-PATH=${HOME}/bin:${PATH}
-LOGDIR=${HOME}/log
-
-target=`date +'%Y%m%d.dump.gz'`
-dumpdir=${HOME}/dumps
-log=${LOGDIR}/dump.log
-keep=4
-
-###########################################################################
-
-trap 'exec >/dev/null 2>&1; cat $log 1>&3; exit 1' ERR
-exec 3>&1 >$log 2>&1
-
-cd $dumpdir
-ssh g0dil@svn.berlios.de "svnadmin dump /svnroot/repos/senf -r 1:HEAD | gzip" >$target
-ls | sort -r | sed -e "1,${keep}d" | xargs -r rm
import os.path, SCons
-# SCons is at #/scons/scons-<v>/engine/SCons/__init__.py
+# SCons is at #/tools/scons-<v>/engine/SCons/__init__.py
# site_init is at #/site_scons/site_init.py
-sconsbase = os.path.join(os.path.dirname(os.path.dirname(__file__)),"scons")
-sconsbase = os.path.abspath(os.path.join(sconsbase, sorted(os.listdir(sconsbase))[-1]))
+sconsbase = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),"tools")
+sconsbase = os.path.join(
+ sconsbase,sorted((f for f in os.listdir(sconsbase) if f.startswith("scons-")))[-1])
sconsengine = os.path.join(sconsbase, 'engine')
-sconsscript = os.path.join(os.path.join(sconsbase, 'script'),'scons')
+sconsscript = os.path.join(sconsbase, 'script', 'scons')
-if os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(SCons.__file__)))) != sconsbase:
+if os.path.dirname(os.path.dirname(os.path.abspath(SCons.__file__))) != sconsengine:
import os, sys, SCons.Util
SCons.Util.display("scons: Switching version")
if [ -z "$1" ]; then
cat <<EOF
-Usage: $0 [-f] <name>.<ext> [<author>]
+Usage:
+ $0 [-f] <name>.<ext> [<author>]
+ $0 [-f] SConscript [<author>]
Will add the file with that name to the current directory by copying
the appropriate template and replacing the @NAME@ placeholders
exit 1
fi
-base="`dirname "$0"`"; base="`cd "$base"; pwd`"
+base="`dirname "$0"`"; base="`cd "$base/_templates"; pwd`"
if [ "$1" == "-f" ]; then
force=1
name="`basename "$1"`"
case "$name" in
*.*) type=".${name#*.}"; name="${name%.$type}" ;;
- *) type="" ;;
+ *) type=".$name" ;;
esac
if [ ! -r "$base/Example$type" ] ; then
--- /dev/null
+#!/bin/sh
+
+base="`dirname "$0"`"; base="`cd "$base"; pwd`"
+
+sconsbase="$(ls -d "$base/scons-"* | sort | tail -1)"
+sconsengine="$sconsbase/engine"
+sconsscript="$sconsbase/script/scons"
+
+export SCONS_LIB_DIR="$sconsengine"
+exec "$sconsscript" "$@"
# script_dir is /foo/bin;
# check /foo/lib/scons*.
prefs.append(head)
- elif tail == "script":
- # script_dir is /foo/script, probably extracted tarball
- # check /foo/engine
- libs.append(os.path.join(head, 'engine'))
head, tail = os.path.split(sys.prefix)
if tail == "usr":