aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-09-30 08:26:59 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-09-30 08:26:59 +0000
commit5c29d9a8ff3db169a7b65ac6ccb619a984697533 (patch)
treec8227bc7b70e8ecea1306a12e285283c877b3ab1 /scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh
parent7041544052f895187f2371d0c143911aefa69a6e (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/tcltk_core-8-5-branch_auto-builder.sh')
-rwxr-xr-xscripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh b/scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh
index 15add4b3..f4cc7852 100755
--- a/scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh
+++ b/scripts/auto-build/tcltk_core-8-5-branch_auto-builder.sh
@@ -2,16 +2,16 @@
# this script is the first attempt to have an automated updater and builder
# 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')
# convert into absolute path
-cd `echo $0 | sed 's|\(.*\)/.*$|\1|'`
-auto_build_root_dir=`pwd`
+cd $(echo $0 | sed 's|\(.*\)/.*$|\1|')
+auto_build_root_dir=$(pwd)
echo "root: $auto_build_root_dir"
# let rsync handle the cleanup with --delete
@@ -63,16 +63,18 @@ upload_build ()
echo "upload specs $1 $2 $3"
echo "Uploading $archive"
- upload_filename=`ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"`
+ upload_filename=$(ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|")
case $SYSTEM in
mingw*)
test -e ${archive} && /c/cygwin/bin/sh -c \
"rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" &&\
+ echo "successfully uploaded: ${upload_filename}" && \
echo SUCCESS
;;
*)
test -e ${archive} && rsync -a ${archive} \
rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \
+ echo "successfully uploaded: ${upload_filename}" && \
echo SUCCESS
;;
esac