diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-09-30 08:26:59 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-09-30 08:26:59 +0000 |
commit | 5c29d9a8ff3db169a7b65ac6ccb619a984697533 (patch) | |
tree | c8227bc7b70e8ecea1306a12e285283c877b3ab1 /scripts/auto-build/run-automated-builder | |
parent | 7041544052f895187f2371d0c143911aefa69a6e (diff) |
replaced `` syntax with $();
added a 1-before-last line to the logfile indicating the uploaded package
(LATER use this to rename the logfile to something more meaningful;
FIRST wait whether everything still works...)
svn path=/trunk/; revision=10317
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-x | scripts/auto-build/run-automated-builder | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index f96608c6..1c4b5f3b 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -8,11 +8,11 @@ PATH="${PATH}:/sw/bin:/sw/sbin" export PATH # the source dir where this script is -SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +SCRIPT_DIR=$(echo $0 | sed 's|\(.*\)/.*$|\1|') . $SCRIPT_DIR/auto-build-common # the name of this script -SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` +SCRIPT=$(echo $0| sed 's|.*/\(.*\)|\1|g') mailbody_on_failure () { ## this is a somewhat simplistic expression to detect error-lines @@ -27,7 +27,7 @@ run_build_script () { distro=$1 - ## LATER: make the uploaded ${LOGFILE} (name) be consistent with the uploaded package-file (name) + ## LATER: make the uploaded ${LOGFILE} (name) be consistent with the uploaded package-file (name) LOGFILE=${HOME}/logs/${DATE}_${TIME}_${SYSTEM}_${HOSTNAME}_${distro}_${SCRIPT}.txt touch ${LOGFILE} @@ -44,7 +44,7 @@ run_build_script () esac # send status report if something failed - completion_test=`tail -1 ${LOGFILE}` + completion_test=$(tail -1 ${LOGFILE}) if [ "x${completion_test}" != "xSUCCESS" ]; then if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" @@ -55,7 +55,7 @@ run_build_script () } for dir in ${HOME}/auto-build/*; do - dirname=`echo $dir | sed 's|.*/\(.*\)|\1|'` + dirname=$(echo $dir | sed 's|.*/\(.*\)|\1|') test -e $dir/scripts/auto-build/${dirname}-auto-builder.sh && \ run_build_script $dirname done |