2019-04-04 07:44:25 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
changelog_file="resources/text/CHANGELOG"
|
|
|
|
datestring="$(date +%F)"
|
|
|
|
versionstring="$(head -n 1 "$changelog_file")"
|
|
|
|
|
2022-12-21 11:02:27 -03:00
|
|
|
for appdata_file in resources/desktop/*.metainfo.xml.in; do
|
2022-10-21 09:06:46 +02:00
|
|
|
appdata_file_n="${appdata_file}.n"
|
|
|
|
|
|
|
|
# Set version and date.
|
|
|
|
cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n"
|
|
|
|
mv "$appdata_file_n" "$appdata_file"
|
|
|
|
|
|
|
|
git add "$appdata_file"
|
|
|
|
done
|
2019-04-04 07:44:25 +02:00
|
|
|
|
|
|
|
exit 0
|