aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/upload-pd-extended-to-launchpad.sh33
1 files changed, 26 insertions, 7 deletions
diff --git a/scripts/upload-pd-extended-to-launchpad.sh b/scripts/upload-pd-extended-to-launchpad.sh
index 5b9eb70f..3fa51e41 100755
--- a/scripts/upload-pd-extended-to-launchpad.sh
+++ b/scripts/upload-pd-extended-to-launchpad.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
set -x
@@ -8,17 +8,35 @@ DEBIAN_SOURCE_DATE=`date +%Y%m%d`
URL_DATE=`date +%Y-%m-%d`
ORIG=Pd-extended_${VERSION}~$DEBIAN_SOURCE_DATE-source.tar.bz2
DEBIAN=Pd-extended_${VERSION}~$DEBIAN_SOURCE_DATE-source.debian.tar.bz2
-BASE_URL=http://${DOWNLOAD_SERVER}/autobuild/$URL_DATE
+URL_DIR=auto-build/$URL_DATE
+BASE_URL=http://${DOWNLOAD_SERVER}/$URL_DIR
+
+BUILD_DIR=/tmp/`basename $0`-$URL_DATE
+
+if [ -e $BUILD_DIR ]; then
+ echo "$BUILD_DIR exists."
+ rm -rf $BUILD_DIR/pd-extended
+else
+ mkdir $BUILD_DIR
+fi
+cd $BUILD_DIR
echo "Downloading source package from $BASE_URL"
-# get the tarballs, and use existing versions if already there
-wget -c ${BASE_URL}/${ORIG}
-wget -c ${BASE_URL}/${DEBIAN}
# always fetch MD5s to make sure the existing tarballs were correct
rm -f *.md5
-wget ${BASE_URL}/${ORIG}.md5
-wget ${BASE_URL}/${DEBIAN}.md5
+
+# get the tarballs, and use existing versions if already there
+#wget -c ${BASE_URL}/${ORIG}
+#wget -c ${BASE_URL}/${DEBIAN}
+#wget ${BASE_URL}/${ORIG}.md5
+#wget ${BASE_URL}/${DEBIAN}.md5
+rsync -ax -e ssh apt@puredata.info:~/www/$URL_DIR/$ORIG \
+ apt@puredata.info:~/www/$URL_DIR/$DEBIAN \
+ apt@puredata.info:~/www/$URL_DIR/$ORIG.md5 \
+ apt@puredata.info:~/www/$URL_DIR/$DEBIAN.md5 \
+ $BUILD_DIR/
+
md5sum -c ${ORIG}.md5
md5sum -c ${DEBIAN}.md5
@@ -40,6 +58,7 @@ sed -i s,maverick,natty,g debian/changelog && debuild -S
sed -i s,natty,oneiric,g debian/changelog && debuild -S
sed -i s,oneiric,precise,g debian/changelog && debuild -S
sed -i s,precise,quantal,g debian/changelog && debuild -S
+sed -i s,quantal,raring,g debian/changelog && debuild -S
for f in ../pd-extended_*~*.changes; do
echo $f