From 5c29d9a8ff3db169a7b65ac6ccb619a984697533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 30 Sep 2008 08:26:59 +0000 Subject: 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 --- scripts/auto-build/run-automated-builder | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/auto-build/run-automated-builder') 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 -- cgit v1.2.1