From bcf568586de30be23bd5ff37746b6b4eb1140167 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Mon, 3 Sep 2018 22:04:50 +0200 Subject: Fix appdata Use correct format, create script to update the version and release date in the appdata. [Dirk Hohndel: call said script during the build process] Signed-off-by: Alexander Wilms Signed-off-by: Dirk Hohndel --- scripts/add-version-to-appdata.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/add-version-to-appdata.sh (limited to 'scripts') diff --git a/scripts/add-version-to-appdata.sh b/scripts/add-version-to-appdata.sh new file mode 100755 index 000000000..a9f3b98ea --- /dev/null +++ b/scripts/add-version-to-appdata.sh @@ -0,0 +1,4 @@ +#!/bin/sh +version=$(git describe --abbrev=12) +date=$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d) +sed -e "s|||" -i appdata/subsurface.appdata.xml -- cgit v1.2.3-70-g09d2