mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-02 02:52:40 +00:00
c520c291f0
CMake should run make-appdata.sh
30 lines
682 B
Bash
Executable file
30 lines
682 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "usage: $0 input output"
|
|
exit 1
|
|
fi
|
|
|
|
#echo "generating $2..."
|
|
|
|
cat "$1" > "$2"
|
|
|
|
echo " <releases>" >> "$2"
|
|
|
|
for i in `git log --tags='v*' --no-walk --format="%as/%(describe:tags)"`; do
|
|
releaseDate=${i%/*}
|
|
releaseVer=${i#*/}
|
|
releaseType=stable
|
|
if [[ $releaseVer =~ "pre" ]]; then
|
|
releaseType=development
|
|
fi
|
|
echo " <release version=\"${releaseVer/pre/~pre}\" date=\"$releaseDate\" type=\"$releaseType\">" >> "$2"
|
|
echo " <url>https://github.com/tildearrow/furnace/releases/tag/$releaseVer</url>" >> "$2"
|
|
echo " </release>" >> "$2"
|
|
done
|
|
|
|
echo " </releases>" >> "$2"
|
|
|
|
echo "</component>" >> "$2"
|
|
|
|
#echo "done."
|