mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-09-01 04:14:15 -04:00
Generated ChangeLog now shows rolling release versions
This commit is contained in:
parent
c1ea262e35
commit
fcd025d4e0
@ -4,6 +4,8 @@
|
|||||||
## Generate ChangeLog from git log
|
## Generate ChangeLog from git log
|
||||||
##
|
##
|
||||||
|
|
||||||
|
VERSION=`git log | grep -c "^commit"`
|
||||||
|
FIRSTVER=93
|
||||||
PREVIOUS=
|
PREVIOUS=
|
||||||
IFS=\;
|
IFS=\;
|
||||||
|
|
||||||
@ -12,8 +14,15 @@ echo "[ Automatically generated from git log ]"
|
|||||||
git log --pretty=tformat:"%ad %an <%ae>;%s" --date=short | \
|
git log --pretty=tformat:"%ad %an <%ae>;%s" --date=short | \
|
||||||
while read -r AUTHOR COMMENT; do
|
while read -r AUTHOR COMMENT; do
|
||||||
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
|
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
|
||||||
printf "\t* %s\n" "$COMMENT"
|
|
||||||
|
if [ $VERSION -ge $FIRSTVER ]; then
|
||||||
|
printf "\t* (v%d) %s\n" $VERSION "$COMMENT"
|
||||||
|
else
|
||||||
|
printf "\t* %s\n" "$COMMENT"
|
||||||
|
fi
|
||||||
|
|
||||||
PREVIOUS="$AUTHOR"
|
PREVIOUS="$AUTHOR"
|
||||||
|
VERSION=$(( VERSION - 1 ))
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user