aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/pd-extended-source-tarball.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-09-26 16:16:07 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-09-26 16:16:07 +0000
commitf310e016d99cca9cfd571656ac480e4b602b7356 (patch)
tree9e3dac2f0f86d03421150cd25ef5880866b024b5 /scripts/auto-build/pd-extended-source-tarball.sh
parente7ef0380e7f650ee2686164dbce579ec31ae0e33 (diff)
add new script to automate the generation of Pd-extended source tarballs
svn path=/trunk/; revision=16307
Diffstat (limited to 'scripts/auto-build/pd-extended-source-tarball.sh')
-rwxr-xr-xscripts/auto-build/pd-extended-source-tarball.sh26
1 files changed, 26 insertions, 0 deletions
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