add a few more release tasks

This commit is contained in:
Dustin Kirkland 2009-03-28 13:29:19 -05:00
commit 5737d3044b

16
debian/release.sh vendored
View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh -e
error() { error() {
echo "ERROR: $@" echo "ERROR: $@"
@ -8,18 +8,30 @@ error() {
head -n1 debian/changelog | grep "unreleased" || error "This version must be 'unreleased'" head -n1 debian/changelog | grep "unreleased" || error "This version must be 'unreleased'"
i=1 i=1
./debian/rules get-orig-source
debuild
sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/" debian/changelog sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/" debian/changelog
debuild -S debuild -S
sed -i "s/ppa1) hardy;/ppa2) intrepid;/" debian/changelog sed -i "s/ppa1) hardy;/ppa2) intrepid;/" debian/changelog
debuild -S debuild -S
sed -i "s/ppa2) intrepid;/ppa3) jaunty;/" debian/changelog sed -i "s/ppa2) intrepid;/ppa3) jaunty;/" debian/changelog
debuild -S debuild -S
sed -i "s/~ppa3) jaunty;/) jaunty;/" debian/changelog
debuild -S
ver=`head -n1 debian/changelog | sed "s/^.*(1.//" | sed "s/-.*$//"`
ver=`expr $ver + 1`
dch -v "1.$ver" "UNRELEASED"
sed -i "s/1.$ver) jaunty;/1.$ver) unreleased;/" debian/changelog
echo echo
echo echo
echo "To test:"
echo " sudo dpkg -i ../*.deb"
echo echo
echo "To upload:" echo "To upload PPA packages:"
echo " dput screen-profiles-ppa ../*ppa*changes" echo " dput screen-profiles-ppa ../*ppa*changes"
echo echo
echo "To commit and push:"
echo " bzr commit && bzr push"
echo echo
echo echo