Browse Source

Add ChangeLog generation script

master
Kim Woelders 1 year ago
parent
commit
ed9ac01394
  1. 24
      ChangeLog.sh

24
ChangeLog.sh

@ -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
Loading…
Cancel
Save