diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-29 15:48:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-29 15:49:04 -0700 |
commit | 9ef90daf77ab520132b9bffd7089b755c1b08440 (patch) | |
tree | 2256d18cebeddc818d4a7ee357098bd58a0bdc42 | |
parent | d75f7474c781ee2d3b4f8c39bf296c47484d2f05 (diff) | |
download | subsurface-9ef90daf77ab520132b9bffd7089b755c1b08440.tar.gz |
Ubuntu build script update
Make sure we list the currently supported releases.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | packaging/ubuntu/make-package.sh | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh index 02ec041c0..56a0e16d9 100644 --- a/packaging/ubuntu/make-package.sh +++ b/packaging/ubuntu/make-package.sh @@ -13,7 +13,7 @@ if [[ $(pwd | grep "subsurface$") || ! -d subsurface || ! -d subsurface/libdivec exit 1; 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/.*\..*//') VERSION=$(echo $GITVERSION | sed -e 's/-/./') LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD) @@ -75,15 +75,19 @@ rev=$(($rev+1)) break fi 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 cp debian/changelog ~/src/debian.changelog debuild -S #create builds for the newer Ubuntu releases that Launchpad supports -rel=trusty -others="vivid wily xenial yakkety" +rel=xenial +others="artful bionic" for next in $others do sed -i "s/${rel}/${next}/g" debian/changelog @@ -91,16 +95,6 @@ do rel=$next 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 .. if [[ "$1x" = "postx" ]] ; then |