aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh2
-rwxr-xr-xscripts/auto-build/pd-extended-source-tarball.sh26
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