diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-17 02:33:32 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-17 02:33:32 +0000 |
commit | d17bcb4613366a767b1e26cc678b03f21b46263a (patch) | |
tree | b3b5e7d980f0322c79da2ba283f9703e86c09fed /scripts | |
parent | b6197a5daf4f96c76dd72d54743574353b6e0194 (diff) |
script to automate the process of uploading the nightly source tarballs to launchpad for building
svn path=/trunk/; revision=16411
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upload-pd-extended-to-launchpad.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/upload-pd-extended-to-launchpad.sh b/scripts/upload-pd-extended-to-launchpad.sh new file mode 100755 index 00000000..a35269d6 --- /dev/null +++ b/scripts/upload-pd-extended-to-launchpad.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +DOWNLOAD_SERVER=blinky.at.or.at:8888 +VERSION=0.43.4 +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 + +wget http://${DOWNLOAD_SERVER}/auto-build/$URL_DATE/${ORIG} +wget http://${DOWNLOAD_SERVER}/auto-build/$URL_DATE/${ORIG}.md5 +wget http://${DOWNLOAD_SERVER}/auto-build/$URL_DATE/${DEBIAN} +wget http://${DOWNLOAD_SERVER}/auto-build/$URL_DATE/${DEBIAN}.md5 +md5sum -c ${ORIG}.md5 +md5sum -c ${DEBIAN}.md5 +tar xjf ${ORIG} +# rename tarball to Debian orig name +mv $ORIG `echo $ORIG | sed 's,^P,p,' | sed 's,-source,.orig,'` +cd pd-extended +tar xjf ../${DEBIAN} + +dch +debuild -S +sed -i s,karmic,lucid,g debian/changelog && debuild -S +sed -i s,lucid,maverick,g debian/changelog && debuild -S +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 + +for f in ../pd-extended_*~*.changes; do + echo $f + dput ppa:eighthave/pd-extended $f +done |