summaryrefslogtreecommitdiffstats
path: root/docs/update-changelog
blob: 57fe7a69bce8c73d3ce4a57e2c3b0e49cb73ff25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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