2014-01-25 07:59:08 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
##
|
|
|
|
## Generate ChangeLog from git log
|
|
|
|
##
|
|
|
|
|
2018-01-29 01:55:41 -05:00
|
|
|
VERSION=`git log | grep -c "^commit"`
|
|
|
|
FIRSTVER=93
|
2014-01-25 07:59:08 -05:00
|
|
|
PREVIOUS=
|
2016-12-11 03:58:24 -05:00
|
|
|
IFS=\;
|
2014-01-25 07:59:08 -05:00
|
|
|
|
|
|
|
echo "[ Automatically generated from git log ]"
|
|
|
|
|
2016-12-11 03:58:24 -05:00
|
|
|
git log --pretty=tformat:"%ad %an <%ae>;%s" --date=short | \
|
|
|
|
while read -r AUTHOR COMMENT; do
|
2014-01-25 07:59:08 -05:00
|
|
|
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
|
2018-01-29 01:55:41 -05:00
|
|
|
|
|
|
|
if [ $VERSION -ge $FIRSTVER ]; then
|
|
|
|
printf "\t* (v%d) %s\n" $VERSION "$COMMENT"
|
|
|
|
else
|
|
|
|
printf "\t* %s\n" "$COMMENT"
|
|
|
|
fi
|
|
|
|
|
2014-01-25 07:59:08 -05:00
|
|
|
PREVIOUS="$AUTHOR"
|
2018-01-29 01:55:41 -05:00
|
|
|
VERSION=$(( VERSION - 1 ))
|
2014-01-25 07:59:08 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|