summaryrefslogtreecommitdiffstats
path: root/scripts/add-version-to-appdata.sh
diff options
context:
space:
mode:
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