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-source-tarball.sh | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/auto-build/pd-extended-source-tarball.sh (limited to 'scripts/auto-build/pd-extended-source-tarball.sh') 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