summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-09-16 10:52:13 +0200
committerKim Woelders <kim@woelders.dk>2021-09-16 10:53:29 +0200
commitfd2c2ef004329ae22c268c0bcf90723ba19ed56e (patch)
tree47af7221b48f55918d8a8ef6ed106ebdf2bf4b4b /misc
parentadda6d7b9c38eb2fb467f72801ad9856acbd9f02 (diff)
downloadimlib2-fd2c2ef004329ae22c268c0bcf90723ba19ed56e.tar.gz
Add script to generate Changelog
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/mkchangelog.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/mkchangelog.sh b/misc/mkchangelog.sh
new file mode 100755
index 0000000..cba222d
--- /dev/null
+++ b/misc/mkchangelog.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+#GLO="git log --format=-%x20%s"
+#GLO="git shortlog -w76,4,6"
+GLO="git shortlog"
+
+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 "%s - %s\n-------------------\n" "$V2" "$D"
+ $GLO $V1..$VH
+ VH=""
+ fi
+ V2="$V1"
+done
+
+D=$(git show -s --format=%cs $VD^{commit})
+printf "\n%s - %s (from dawn of time)\n---------------------------------------\n" "$V2" "$D"
+$GLO $V2