mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
bcf568586d
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 <f.alexander.wilms@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
4 lines
244 B
Bash
Executable file
4 lines
244 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\" />|" -i appdata/subsurface.appdata.xml
|