From 5e0abd882905fe2e9b66dc7ddad5de63f9869643 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 15 Jan 2015 13:49:52 -0800 Subject: Finally deal with incrementing the serial number of the build I know, I know. This should never have been hard coded. Signed-off-by: Dirk Hohndel --- packaging/ubuntu/make-package.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'packaging/ubuntu/make-package.sh') diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh index fa3a4f438..a20971150 100644 --- a/packaging/ubuntu/make-package.sh +++ b/packaging/ubuntu/make-package.sh @@ -56,7 +56,15 @@ cp ../debian.changelog debian/changelog #tail -1 debian/autocl >> debian/changelog #rm -f debian/autocl -dch -v $VERSION-1~trusty -D trusty -M -m "next daily build" +rev=0 +while [ $rev -le "99" ] +do +rev=$(($rev+1)) + if [[ ! $(grep $VERSION-$rev debian/changelog) ]] ; then + break + fi +done +dch -v $VERSION-$rev~trusty -D trusty -M -m "next daily build" mv ~/src/debian.changelog ~/src/debian.changelog.previous cp debian/changelog ~/src/debian.changelog @@ -79,7 +87,7 @@ debuild -S cd .. if [[ "$1x" = "postx" ]] ; then - dput ppa:subsurface/subsurface-daily subsurface_$VERSION*.changes + dput ppa:subsurface/subsurface-daily subsurface_$VERSION-$rev~*.changes cd home:Subsurface-Divelog/Subsurface-daily osc rm $(ls subsurface*.tar.xz | grep -v $VERSION) osc add subsurface-$VERSION.orig.tar.xz -- cgit v1.2.3-70-g09d2