From e7152bc9308af397f54be36106bd654bea8c2464 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 8 Aug 2006 15:36:27 +0000 Subject: added a final line that echos to the logfile to test whether the build was succeeded. if it succeeded, then the status report email is not sent svn path=/trunk/; revision=5512 --- scripts/auto-build/pd-devel-auto-builder.sh | 2 ++ scripts/auto-build/pd-extended-auto-builder.sh | 12 ++++++------ scripts/auto-build/pd-main-auto-builder.sh | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/auto-build/pd-devel-auto-builder.sh b/scripts/auto-build/pd-devel-auto-builder.sh index 4734098e..daa32fd1 100644 --- a/scripts/auto-build/pd-devel-auto-builder.sh +++ b/scripts/auto-build/pd-devel-auto-builder.sh @@ -2,3 +2,5 @@ echo "This currently does nothing, but it could..." +# if the below word prints, the status report email is not sent +echo SUCCESS diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index 8a5746a2..5d918e98 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -39,13 +39,13 @@ upload_build () platform_folder=$1 build_folder=$2 archive_format=$3 + + archive="${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format}" - echo "Uploading $1 $2 $3" -# upload files to webpage - echo ${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format} - test -e ${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format} && \ - rsync -a ${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format} \ - rsync://128.238.56.50/upload/${DATE}/`ls -1 ${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"` + echo "upload specs $1 $2 $3" + echo "Uploading $archive" + test -e ${archive} && rsync -a ${archive} \ + rsync://128.238.56.50/upload/${DATE}/`ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"` && echo SUCCESS } if [ "$SYSTEM" == "Linux" ]; then diff --git a/scripts/auto-build/pd-main-auto-builder.sh b/scripts/auto-build/pd-main-auto-builder.sh index a5ec0645..d964201e 100755 --- a/scripts/auto-build/pd-main-auto-builder.sh +++ b/scripts/auto-build/pd-main-auto-builder.sh @@ -43,6 +43,7 @@ cd ${auto_build_root_dir}/pd/src && \ make && \ cd ../../ && \ tar cjf $package_name pd && \ - rsync -a ${package_name} rsync://128.238.56.50/upload/${DATE}/ + rsync -a ${package_name} rsync://128.238.56.50/upload/${DATE}/ && \ + echo SUCCESS rm -f -- $package_name -- cgit v1.2.1