diff options
-rwxr-xr-x | scripts/upload-pd-extended-to-launchpad.sh | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/scripts/upload-pd-extended-to-launchpad.sh b/scripts/upload-pd-extended-to-launchpad.sh index a35269d6..d7a1fd69 100755 --- a/scripts/upload-pd-extended-to-launchpad.sh +++ b/scripts/upload-pd-extended-to-launchpad.sh @@ -1,16 +1,28 @@ #!/bin/sh -DOWNLOAD_SERVER=blinky.at.or.at:8888 +IPBASE=`ifconfig | grep 'inet addr' \ + | sed -n 's|.*inet addr:\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' \ + | grep -v '127\.0\.0'` + +if [ "$IPBASE" = "10.4.0" ]; then + DOWNLOAD_SERVER=10.4.0.50 +else + DOWNLOAD_SERVER=blinky.at.or.at:8888 +fi + 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 +BASE_URL=http://${DOWNLOAD_SERVER}/auto-build/$URL_DATE + +echo "Downloading source package from $BASE_URL" -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 +wget ${BASE_URL}/${ORIG} +wget ${BASE_URL}/${ORIG}.md5 +wget ${BASE_URL}/${DEBIAN} +wget ${BASE_URL}/${DEBIAN}.md5 md5sum -c ${ORIG}.md5 md5sum -c ${DEBIAN}.md5 tar xjf ${ORIG} @@ -19,9 +31,10 @@ mv $ORIG `echo $ORIG | sed 's,^P,p,' | sed 's,-source,.orig,'` cd pd-extended tar xjf ../${DEBIAN} -dch +sed -i \ + 's|^\(pd-extended (0.*-[0-9]\).*) [a-zA-Z][a-zA-Z]*|\1~lucid) lucid|p' \ + debian/changelog 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 |