mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change AppStream metainfo file extension and path
The legacy /usr/share/appdata/*.appdata.xml path has been superseded by /usr/share/metainfo/*.metainfo.xml https://freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
This commit is contained in:
parent
798e426926
commit
c92ebd1f3b
8 changed files with 12 additions and 12 deletions
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# work either when building from git or when building from our hand
|
||||
# crafted tar balls for OBS
|
||||
# this will, however, fail for plain tar balls create via git archive
|
||||
|
||||
SCRIPT_DIR="$( cd "${BASH_SOURCE%/*}" ; pwd )"
|
||||
VERSION=$(git describe --match "v[0-9]*" --abbrev=12) || VERSION=$(cat "$SCRIPT_DIR"/../.gitversion)
|
||||
DATE=$(git log -1 --format="%ct" | xargs -I{} date -d @{} +%Y-%m-%d)
|
||||
if [ "$DATE" = "" ] ; then
|
||||
DATE=$(cat "$SCRIPT_DIR"/../.gitdate)
|
||||
fi
|
||||
sed -e "s|<release version=\"\" date=\"\" />|<release version=\"$VERSION\" date=\"$DATE\" />|" appdata/subsurface.appdata.xml.in > appdata/subsurface.appdata.xml
|
Loading…
Add table
Add a link
Reference in a new issue