mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
4 lines
277 B
Bash
Executable file
4 lines
277 B
Bash
Executable file
#!/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\" />|" appdata/subsurface.appdata.xml.in > appdata/subsurface.appdata.xml
|