diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-26 16:16:07 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-26 16:16:07 +0000 |
commit | f310e016d99cca9cfd571656ac480e4b602b7356 (patch) | |
tree | 9e3dac2f0f86d03421150cd25ef5880866b024b5 /scripts/auto-build | |
parent | e7ef0380e7f650ee2686164dbce579ec31ae0e33 (diff) |
add new script to automate the generation of Pd-extended source tarballs
svn path=/trunk/; revision=16307
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-x | scripts/auto-build/pd-extended-auto-builder.sh | 2 | ||||
-rwxr-xr-x | scripts/auto-build/pd-extended-source-tarball.sh | 26 |
2 files changed, 27 insertions, 1 deletions
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 |