mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
90f931dabe
commit
5e0abd8829
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue