Add ChangeLog generation script
This commit is contained in:
parent
bf077e9be6
commit
ed9ac01394
|
@ -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…
Reference in New Issue