#!/bin/bash echo "generating furnace.appdata.xml..." cat furnace.appdata.xml.in > furnace.appdata.xml echo " " >> furnace.appdata.xml 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 " " >> furnace.appdata.xml echo " https://github.com/tildearrow/furnace/releases/tag/$releaseVer" >> furnace.appdata.xml echo " " >> furnace.appdata.xml done echo " " >> furnace.appdata.xml echo "" >> furnace.appdata.xml echo "done."