summaryrefslogtreecommitdiffstats
path: root/scripts/add-version-to-appdata.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-15 07:27:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-15 15:51:47 -0700
commit26d8beb7668d88124a954c163de9b1ce1b082c39 (patch)
treead513f555e1e06ee4fbf6f19a5f14dbb05957c30 /scripts/add-version-to-appdata.sh
parent7319b50a5d7c46abd7495aa51740ec6cb0ec0141 (diff)
downloadsubsurface-26d8beb7668d88124a954c163de9b1ce1b082c39.tar.gz
build-system: don't modify a file under git control
Instead of editing appdata/subsurface.appdata.xml in place, switch to our usual pattern of modifying a .in file and add the resulting file to .gitignore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/add-version-to-appdata.sh')
-rwxr-xr-xscripts/add-version-to-appdata.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/add-version-to-appdata.sh b/scripts/add-version-to-appdata.sh
index a9f3b98ea..a0d8e1f5d 100755
--- a/scripts/add-version-to-appdata.sh
+++ b/scripts/add-version-to-appdata.sh
@@ -1,4 +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|<release version=\"\" date=\"\" />|<release version=\"$version\" date=\"$date\" />|" -i appdata/subsurface.appdata.xml
+sed -e "s|<release version=\"\" date=\"\" />|<release version=\"$version\" date=\"$date\" />|" appdata/subsurface.appdata.xml.in > appdata/subsurface.appdata.xml