aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/ubuntu
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-15 13:49:52 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-15 14:15:30 -0800
commit5e0abd882905fe2e9b66dc7ddad5de63f9869643 (patch)
tree95ec86cb8fcd1cbf4284b3e2ff8ae045a5b9276b /packaging/ubuntu
parent90f931dabe60debd0ced83b48e8bae3f10805797 (diff)
downloadsubsurface-5e0abd882905fe2e9b66dc7ddad5de63f9869643.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'packaging/ubuntu')
-rw-r--r--packaging/ubuntu/make-package.sh12
1 files changed, 10 insertions, 2 deletions
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