From f310e016d99cca9cfd571656ac480e4b602b7356 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 26 Sep 2012 16:16:07 +0000 Subject: add new script to automate the generation of Pd-extended source tarballs svn path=/trunk/; revision=16307 --- scripts/auto-build/pd-extended-auto-builder.sh | 2 +- scripts/auto-build/pd-extended-source-tarball.sh | 26 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 scripts/auto-build/pd-extended-source-tarball.sh diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index 721e7f3b..72686487 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -65,7 +65,7 @@ print_ip_address if [ "$1" = "source-tarball-only" ]; then echo "--- making source tarball ------------------------------" version=$(get_pd_version $auto_build_root_dir) - tarballname=Pd-extended_$version.tar.bz2 + tarballname=Pd-extended_$version-source.tar.bz2 make_source_tarball "${auto_build_root_dir}" $tarballname echo "The source tarball is here:" echo " /tmp/$tarballname" diff --git a/scripts/auto-build/pd-extended-source-tarball.sh b/scripts/auto-build/pd-extended-source-tarball.sh new file mode 100755 index 00000000..b9738d15 --- /dev/null +++ b/scripts/auto-build/pd-extended-source-tarball.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +set -x + +# 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 + +# convert into absolute path +cd "${SCRIPT_DIR}/../.." +auto_build_root_dir=`pwd` +echo "build root: $auto_build_root_dir" + +version=$(get_pd_version $auto_build_root_dir) + +$SCRIPT_DIR/pd-extended-auto-builder.sh source-tarball-only + +archive=$(ls -1 /tmp/Pd-extended*$version*-source.tar.bz2 | tail -1) +upload_filename=$(basename $archive) +rsync -a --chmod=a+r ${archive} rsync://blinky.at.or.at/upload/${DATE}/${upload_filename} && \ + md5sum ${archive} > ${archive}.md5 && \ + rsync -a ${archive}.md5 rsync://blinky.at.or.at/upload/${DATE}/${upload_filename}.md5 && \ + rm $archive && rm $archive.md5 && \ + echo "successfully uploaded: ${upload_filename}" && \ + echo SUCCESS -- cgit v1.2.1