mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Ubuntu build script update
Make sure we list the currently supported releases. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d75f7474c7
commit
9ef90daf77
1 changed files with 8 additions and 14 deletions
|
@ -13,7 +13,7 @@ if [[ $(pwd | grep "subsurface$") || ! -d subsurface || ! -d subsurface/libdivec
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GITVERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//')
|
GITVERSION=$(cd subsurface ; git describe --abbrev=12 | sed -e 's/-g.*$// ; s/^v//')
|
||||||
GITREVISION=$(echo $GITVERSION | sed -e 's/.*-// ; s/.*\..*//')
|
GITREVISION=$(echo $GITVERSION | sed -e 's/.*-// ; s/.*\..*//')
|
||||||
VERSION=$(echo $GITVERSION | sed -e 's/-/./')
|
VERSION=$(echo $GITVERSION | sed -e 's/-/./')
|
||||||
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
|
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
|
||||||
|
@ -75,15 +75,19 @@ rev=$(($rev+1))
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
dch -v $VERSION-$rev~trusty -D trusty -M -m "next daily build"
|
if [[ "$RELEASE" = "1" ]] ; then
|
||||||
|
dch -v $VERSION-$rev~xenial -D xenial -M -m "Next release build - please check https://subsurface-divelog.org/category/news/ for details"
|
||||||
|
else
|
||||||
|
dch -v $VERSION-$rev~xenial -D xenial -M -m "next daily build"
|
||||||
|
fi
|
||||||
mv ~/src/debian.changelog ~/src/debian.changelog.previous
|
mv ~/src/debian.changelog ~/src/debian.changelog.previous
|
||||||
cp debian/changelog ~/src/debian.changelog
|
cp debian/changelog ~/src/debian.changelog
|
||||||
|
|
||||||
debuild -S
|
debuild -S
|
||||||
|
|
||||||
#create builds for the newer Ubuntu releases that Launchpad supports
|
#create builds for the newer Ubuntu releases that Launchpad supports
|
||||||
rel=trusty
|
rel=xenial
|
||||||
others="vivid wily xenial yakkety"
|
others="artful bionic"
|
||||||
for next in $others
|
for next in $others
|
||||||
do
|
do
|
||||||
sed -i "s/${rel}/${next}/g" debian/changelog
|
sed -i "s/${rel}/${next}/g" debian/changelog
|
||||||
|
@ -91,16 +95,6 @@ do
|
||||||
rel=$next
|
rel=$next
|
||||||
done
|
done
|
||||||
|
|
||||||
# and now for precise (precise can't build Qt5 based packages)
|
|
||||||
# with the switch to cmake the amount of effort to build Qt4 packages
|
|
||||||
# on precise just doesn't seem worth it anymore
|
|
||||||
#prev=vivid
|
|
||||||
#rel=precise
|
|
||||||
#sed -i "s/${prev}/${rel}/g" debian/changelog
|
|
||||||
#cp debian/12.04.control debian/control
|
|
||||||
#cp debian/12.04.rules debian/rules
|
|
||||||
#debuild -S
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [[ "$1x" = "postx" ]] ; then
|
if [[ "$1x" = "postx" ]] ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue