mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adjust version numbering for Ubuntu package
Let's use all four digits as 'version'. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ebd22b9abc
commit
589f277477
2 changed files with 11 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
||||||
Source: subsurface-4.2.90
|
Source: subsurface
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Dirk Hohndel <dirk@hohndel.org>
|
Maintainer: Dirk Hohndel <dirk@hohndel.org>
|
||||||
|
@ -31,7 +31,7 @@ Homepage: http://subsurface-divelog.hohndel.org
|
||||||
#Vcs-Git: git://git.debian.org/collab-maint/subsurface-4.2.90.git
|
#Vcs-Git: git://git.debian.org/collab-maint/subsurface-4.2.90.git
|
||||||
#Vcs-Browser: http://git.debian.org/?p=collab-maint/subsurface-4.2.90.git;a=summary
|
#Vcs-Browser: http://git.debian.org/?p=collab-maint/subsurface-4.2.90.git;a=summary
|
||||||
|
|
||||||
Package: subsurface-4.2.90
|
Package: subsurface
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Description: Dive log program
|
Description: Dive log program
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# start from the directory above the combined subsurface & subsurface/libdivecomputer directory
|
# start from the directory above the combined subsurface & subsurface/libdivecomputer directory
|
||||||
VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//')
|
VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v// ; s/-/./')
|
||||||
echo "building Subsurface" $VERSION
|
echo "building Subsurface" $VERSION
|
||||||
if [[ -d subsurface-$VERSION ]]; then
|
if [[ -d subsurface_$VERSION ]]; then
|
||||||
rm -rf subsurface-$VERSION.bak.prev
|
rm -rf subsurface_$VERSION.bak.prev
|
||||||
mv subsurface-$VERSION.bak subsurface-$VERSION.bak.prev
|
mv subsurface_$VERSION.bak subsurface_$VERSION.bak.prev
|
||||||
mv subsurface-$VERSION subsurface-$VERSION.bak
|
mv subsurface_$VERSION subsurface_$VERSION.bak
|
||||||
fi
|
fi
|
||||||
mkdir subsurface-$VERSION
|
mkdir subsurface_$VERSION
|
||||||
(cd subsurface ; tar cf - . .git ) | (cd subsurface-$VERSION ; tar xf - )
|
(cd subsurface ; tar cf - . .git ) | (cd subsurface_$VERSION ; tar xf - )
|
||||||
cd subsurface-$VERSION
|
cd subsurface_$VERSION
|
||||||
dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes
|
dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION
|
||||||
rm debian/*.ex debian/*.EX debian/README.*
|
rm debian/*.ex debian/*.EX debian/README.*
|
||||||
cp ../subsurface/packaging/ubuntu/control debian/control
|
cp ../subsurface/packaging/ubuntu/control debian/control
|
||||||
cp ../subsurface/packaging/ubuntu/copyright debian/copyright
|
cp ../subsurface/packaging/ubuntu/copyright debian/copyright
|
||||||
|
@ -25,12 +25,3 @@ rm -f debian/autocl
|
||||||
|
|
||||||
debuild -S
|
debuild -S
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit
|
|
||||||
cd subsurface-$VERSION/libdivecomputer
|
|
||||||
autoreconf --install
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue