aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-18 15:42:12 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-18 15:42:12 +0000
commitf4e90a9605d3331e0b1cea76f25d01ed74fbcaf4 (patch)
tree5b7cc67f272eb9dcc39cad5c1eb7ae1cb32fd46a /scripts
parent848d5198beabf8447a45bd7ab202251350e4a0cb (diff)
switched to a common file for common variables; downcased hostname and uname
svn path=/trunk/; revision=6133
Diffstat (limited to 'scripts')
-rw-r--r--scripts/auto-build/auto-build-common10
-rw-r--r--scripts/auto-build/pd-devel-auto-builder.sh9
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh11
-rwxr-xr-xscripts/auto-build/pd-main-auto-builder.sh9
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload10
-rwxr-xr-xscripts/auto-build/pure-data-cvs-rsync10
-rwxr-xr-xscripts/auto-build/pure-data-cvs-rsync-checkout9
-rwxr-xr-xscripts/auto-build/run-automated-builder11
8 files changed, 48 insertions, 31 deletions
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 ()
{