add a script for releasing ppa packages

This commit is contained in:
Dustin Kirkland 2009-03-28 12:42:33 -05:00
commit c34230f69f

25
debian/release.sh vendored Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
error() {
echo "ERROR: $@"
exit 1
}
head -n1 debian/changelog | grep "unreleased" || error "This version must be 'unreleased'"
i=1
sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/" debian/changelog
debuild -S
sed -i "s/ppa1) hardy;/ppa2) intrepid;/" debian/changelog
debuild -S
sed -i "s/ppa2) intrepid;/ppa3) jaunty;/" debian/changelog
debuild -S
echo
echo
echo
echo "To upload:"
echo " dput screen-profiles-ppa ../*ppa*changes"
echo
echo
echo