diff options
Diffstat (limited to 'docs/update-changelog')
-rwxr-xr-x | docs/update-changelog | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/update-changelog b/docs/update-changelog new file mode 100755 index 0000000..57fe7a6 --- /dev/null +++ b/docs/update-changelog @@ -0,0 +1,22 @@ +#!/bin/bash + +FROM=$1 +TO=$2 +OUTPUT=$3 + +echo "## Changes from $FROM to $TO +" >> tmp +git log --pretty=format:'* [%h](http://ufo.kit.edu/repos/libuca.git/commit/?id=%h): %s' $FROM..$TO >> tmp + +echo " +" >> tmp + +if [ -f "$OUTPUT" ] +then + cat tmp $OUTPUT > tmp_md + rm $OUTPUT + mv tmp_md $OUTPUT + rm tmp +else + mv tmp $OUTPUT +fi |