Skip to content

Commit

Permalink
changelog-script
Browse files Browse the repository at this point in the history
  • Loading branch information
t-oster committed May 7, 2013
1 parent 9c091d8 commit 1fee00d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions generateChangelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
if [ "$1" == '--until' ]
then
UNTIL=$2
fi
git log --decorate=full|{
while read line
do
if echo $line|grep refs/tags/ > /dev/null
then
TAG=$(echo $line|grep -oP 'refs/tags/\K[^,)]*')
if [ "$UNTIL" == "$TAG" ]
then
exit
fi
echo ""
echo "=== Verison $TAG ==="
fi
if echo $line|grep 'CHANGELOG:' > /dev/null
then
echo " * " $(echo $line|grep -oP 'CHANGELOG:\K.*')
fi
done
}

0 comments on commit 1fee00d

Please sign in to comment.