#!/bin/sh if [ $# -lt 2 ]; then echo "usage: $0 input output" exit 1 fi #echo "generating $2..." cat "$1" > "$2" echo " " >> "$2" for i in `git log --tags='v*' --no-walk --format="%as/%(describe:tags)"`; do releaseDate=${i%/*} releaseVer=${i#*/} releaseVerProper=$releaseVer case $releaseVer in *pre*) releaseType=development releaseVerProper="${releaseVer%pre*}~pre${releaseVer#*pre}" ;; *) releaseType=stable;; esac echo " " >> "$2" echo " https://github.com/tildearrow/furnace/releases/tag/$releaseVer" >> "$2" echo " " >> "$2" done echo " " >> "$2" echo "" >> "$2" #echo "done."