From a3d84cca2ad5f01929983806fe9ae4f45a2bdb75 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 17 Sep 2010 23:40:10 +0000 Subject: cp pd-extended-auto-builder.sh pd-extended-release-auto-builder.sh svn path=/trunk/; revision=14155 --- .../auto-build/pd-extended-release-auto-builder.sh | 30 +++++++++------------- 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'scripts/auto-build/pd-extended-release-auto-builder.sh') diff --git a/scripts/auto-build/pd-extended-release-auto-builder.sh b/scripts/auto-build/pd-extended-release-auto-builder.sh index d99e53a7..723645fd 100755 --- a/scripts/auto-build/pd-extended-release-auto-builder.sh +++ b/scripts/auto-build/pd-extended-release-auto-builder.sh @@ -2,10 +2,12 @@ # this script is the first attempt to have an automated updater and builder # the source dir where this script is +## this could be done more easily with ${0%/*} SCRIPT_DIR=$(echo $0 | sed 's|\(.*\)/.*$|\1|') . $SCRIPT_DIR/auto-build-common # the name of this script +## this could be done more easily with ${0##*/} SCRIPT=$(echo $0| sed 's|.*/\(.*\)|\1|g') BUILD_DIR=. @@ -34,25 +36,17 @@ esac # convert into absolute path -cd $(echo $0 | sed 's|\(.*\)/.*$|\1|')/../.. -auto_build_root_dir=$(pwd) -echo "root: $auto_build_root_dir" - -# let rsync handle the cleanup with --delete -case $SYSTEM in - mingw*) - /c/cygwin/bin/sh -c \ - "rsync --archive --no-links --copy-links --delete rsync://128.238.56.50/distros/pd-extended-release/ ${auto_build_root_dir}/" - ;; - *) - rsync -a --delete rsync://128.238.56.50/distros/pd-extended-release/ ${auto_build_root_dir}/ - ;; -esac +cd "${SCRIPT_DIR}/../.." +auto_build_root_dir=`pwd` +echo "build root: $auto_build_root_dir" +rsync_distro "$auto_build_root_dir" cd "${auto_build_root_dir}/packages/$BUILD_DIR" make -C "${auto_build_root_dir}/packages" set_version make test_locations +echo "mounts ----------------------------------------" mount +print_ip_address make package_clean make install && make package @@ -72,18 +66,18 @@ upload_build () case $SYSTEM in mingw*) /c/cygwin/bin/sh -c \ - "rsync --archive --no-links --copy-links ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" && \ + "rsync --archive --no-links --copy-links --chmod=a+r ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" && \ md5sum ${archive} > ${archive}.md5 && \ /c/cygwin/bin/sh -c \ "rsync --archive --no-links --copy-links ${archive}.md5 rsync://128.238.56.50/upload/${DATE}/${upload_filename}.md5" && \ - echo "successfully uploaded: ${upload_filename}" && \ + echo "successfully uploaded: ${upload_filename}" && \ echo SUCCESS ;; *) - rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \ + rsync -a --chmod=a+r ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \ md5sum ${archive} > ${archive}.md5 && \ rsync -a ${archive}.md5 rsync://128.238.56.50/upload/${DATE}/${upload_filename}.md5 && \ - echo "successfully uploaded: ${upload_filename}" && \ + echo "successfully uploaded: ${upload_filename}" && \ echo SUCCESS ;; esac -- cgit v1.2.1