Add ChangeLog generation script

This commit is contained in:
Kim Woelders 2021-04-07 21:36:50 +02:00
parent bf077e9be6
commit ed9ac01394
1 changed files with 24 additions and 0 deletions

24
ChangeLog.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
GLO="git log --format=-%x20%s"
VT=`git tag --sort=-version:refname -l`
VH=""
if [ "$1" != "" ]; then VH="HEAD"; fi
V2=""
for V1 in $1 $VT
do
if [ "$V2" != "" ]; then
if [ "$VH" = "HEAD" ]; then
VD="$VH"
else
VD="$V2"
VH="$V2"
fi
D=$(git show -s --format=%cs $VD^{commit})
printf "\ne16 %s - %s\n------------------------\n" "$V2" "$D"
$GLO $V1..$VH
VH=""
fi
V2="$V1"
done