diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-20 06:12:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-20 10:02:54 -0700 |
commit | 83079c92df866f0eda09cfef6cf9d3d90782d2b5 (patch) | |
tree | 150379258e39ed1b4f58c5222f09ccc4c0f10782 /packaging | |
parent | 21b1550739b9a3fe4ab27cabd4a8587249048f71 (diff) | |
download | subsurface-83079c92df866f0eda09cfef6cf9d3d90782d2b5.tar.gz |
build-system: fix appdata creation on OBS
Build systems that run from tar balls and not git fail to create valid
.appdata.xml This solves the problem for tar balls that we create for
OBS via our own make-package script. It doesn't solve the problem for
Arch or Gentoo who I believe take our tar files created via git archive.
One way to fix this would be to change the process by which I create
those tar files, I guess.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ubuntu/make-package.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh index 56a0e16d9..2dbf45f5b 100644 --- a/packaging/ubuntu/make-package.sh +++ b/packaging/ubuntu/make-package.sh @@ -16,6 +16,7 @@ fi 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/-/./') +GITDATE=$(cd subsurface ; git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d) LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD) # @@ -40,6 +41,7 @@ if [[ ! -d subsurface_$VERSION ]]; then cd subsurface_$VERSION; rm -rf .git libdivecomputer/.git libgit2/.git echo $GITVERSION > .gitversion + echo $GITDATE > .gitdate 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.* |