mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:43:24 +00:00
Ubuntu packaging: Create the correct libdivecomputer version
Since we strip the .git data from the source tree (to conserve space and not violate the packaging guidelines - or at least not violate THAT packaging guideline) we need to create the correct revision before the tar file of sources is packaged. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4487efcabe
commit
f559f6c870
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,8 @@ fi
|
|||
|
||||
GITVERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//')
|
||||
VERSION=$(echo $GITVERSION | sed -e 's/-/./')
|
||||
echo "building Subsurface" $VERSION
|
||||
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
|
||||
echo "building Subsurface" $VERSION "with libdivecomputer" $LIBDCREVISION
|
||||
if [[ -d subsurface_$VERSION ]]; then
|
||||
rm -rf subsurface_$VERSION.bak.prev
|
||||
mv subsurface_$VERSION.bak subsurface_$VERSION.bak.prev
|
||||
|
@ -19,6 +20,7 @@ mkdir subsurface_$VERSION
|
|||
cd subsurface_$VERSION
|
||||
rm -rf .git libdivecomputer/.git libgit2/.git marble-source/.git
|
||||
echo $GITVERSION > .gitversion
|
||||
echo $LIBDCREVISION > libdivecomputer/revision
|
||||
|
||||
dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION
|
||||
rm debian/*.ex debian/*.EX debian/README.*
|
||||
|
|
Loading…
Add table
Reference in a new issue