summaryrefslogtreecommitdiffstats
path: root/scripts/add-version-to-appdata.sh
blob: a9f3b98ea3855a63dc10620a9c39c4613b527b52 (plain) (blame)
1
2
3
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