From f4e90a9605d3331e0b1cea76f25d01ed74fbcaf4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 18 Oct 2006 15:42:12 +0000 Subject: switched to a common file for common variables; downcased hostname and uname svn path=/trunk/; revision=6133 --- scripts/auto-build/auto-build-common | 10 ++++++++++ scripts/auto-build/pd-devel-auto-builder.sh | 9 +++++---- scripts/auto-build/pd-extended-auto-builder.sh | 11 +++++------ scripts/auto-build/pd-main-auto-builder.sh | 9 +++++---- scripts/auto-build/prep-auto-build-upload | 10 +++++----- scripts/auto-build/pure-data-cvs-rsync | 10 +++++++--- scripts/auto-build/pure-data-cvs-rsync-checkout | 9 ++++++--- scripts/auto-build/run-automated-builder | 11 +++++------ 8 files changed, 48 insertions(+), 31 deletions(-) create mode 100644 scripts/auto-build/auto-build-common diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common new file mode 100644 index 00000000..9c6ac5aa --- /dev/null +++ b/scripts/auto-build/auto-build-common @@ -0,0 +1,10 @@ +# these are common variables for the auto-build scripts + +HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|'` +SYSTEM=`uname -s | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|'` +DATE=`date +%Y-%m-%d` +TIME=`date +%H.%M.%S` + +# recipient of any emails set from the scripts +RECIPIENT=pd-cvs@iem.at + diff --git a/scripts/auto-build/pd-devel-auto-builder.sh b/scripts/auto-build/pd-devel-auto-builder.sh index 1524c13c..8670f705 100644 --- a/scripts/auto-build/pd-devel-auto-builder.sh +++ b/scripts/auto-build/pd-devel-auto-builder.sh @@ -1,9 +1,10 @@ #!/bin/sh -HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` case $SYSTEM in diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index 69b40cf8..98762e42 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -1,13 +1,12 @@ #!/bin/sh - # this script is the first attempt to have an automated updater and builder -HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` -SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common +# the name of this script +SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` BUILD_DIR=. case $SYSTEM in diff --git a/scripts/auto-build/pd-main-auto-builder.sh b/scripts/auto-build/pd-main-auto-builder.sh index 1b35b2c3..5fd11d1b 100755 --- a/scripts/auto-build/pd-main-auto-builder.sh +++ b/scripts/auto-build/pd-main-auto-builder.sh @@ -1,9 +1,10 @@ #!/bin/sh -HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]*\)\..*|\1|'` -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` case $SYSTEM in diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload index 1844e2e7..145a0ffe 100755 --- a/scripts/auto-build/prep-auto-build-upload +++ b/scripts/auto-build/prep-auto-build-upload @@ -1,11 +1,11 @@ #!/bin/sh - # prepare a directory per date for the auto-builders to upload to -HOSTNAME=`hostname` -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt diff --git a/scripts/auto-build/pure-data-cvs-rsync b/scripts/auto-build/pure-data-cvs-rsync index f1c61b4d..b73414ef 100755 --- a/scripts/auto-build/pure-data-cvs-rsync +++ b/scripts/auto-build/pure-data-cvs-rsync @@ -1,9 +1,13 @@ #!/bin/sh +# rsync the CVS source files from SourceForge to make a local copy -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` + LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt VERBOSE_FLAGS=-v diff --git a/scripts/auto-build/pure-data-cvs-rsync-checkout b/scripts/auto-build/pure-data-cvs-rsync-checkout index de08ed97..43ece035 100755 --- a/scripts/auto-build/pure-data-cvs-rsync-checkout +++ b/scripts/auto-build/pure-data-cvs-rsync-checkout @@ -1,8 +1,11 @@ #!/bin/sh +# update from the local CVS repository -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index 0e15c9db..f07df952 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -1,12 +1,11 @@ #!/bin/sh -HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|'` -SYSTEM=`uname -s` -DATE=`date +%Y-%m-%d` -TIME=`date +%H.%M.%S` -SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common -RECIPIENT=pd-cvs@iem.at +# the name of this script +SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` run_build_script () { -- cgit v1.2.1