aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-02 22:41:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-02 22:41:41 -0700
commit9df4c7f57b61fce1676aadfc8aece076398be2cc (patch)
treec1c4f1cdaa4fac67fe5760ea82cc091096cad83b
parent75706135e39ed7bc93b8c0321362862d25733bdd (diff)
downloadpandoc-9df4c7f57b61fce1676aadfc8aece076398be2cc.tar.gz
Added tools/changelog-helper.sh.
-rw-r--r--RELEASE-CHECKLIST3
-rwxr-xr-xtools/changelog-helper.sh23
2 files changed, 24 insertions, 2 deletions
diff --git a/RELEASE-CHECKLIST b/RELEASE-CHECKLIST
index 1fbf396d7..178d514b8 100644
--- a/RELEASE-CHECKLIST
+++ b/RELEASE-CHECKLIST
@@ -1,8 +1,7 @@
[ ] make README.md and commit if needed
[ ] make man/pandoc.1 and commit if needed
[ ] Finalize changelog
- git log --pretty='format:%n%n* %s (%an)%n%b%n%h%n' \
- --reverse --name-only LASTRELEASE..HEAD > LOG
+ tools/changelog-helper.sh
[ ] make packages
[ ] make update-website
[ ] make trypandoc
diff --git a/tools/changelog-helper.sh b/tools/changelog-helper.sh
new file mode 100755
index 000000000..dfaefa483
--- /dev/null
+++ b/tools/changelog-helper.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+# generate preliminary list of changes since changelog
+# was last modified
+
+lastmod=`git log -n2 --format=oneline changelog | awk '{print $1;}'`
+#git log --format=oneline $starthash..HEAD
+files=`git ls-tree -r master --name-only`
+for x in $files
+do
+ commits=`git log -n1 $lastmod..HEAD $x`
+ if [[ ! -z $commits ]]
+ then
+ if echo $x | grep -q "src\/.*\.hs"
+ then
+ file=`echo $x | sed -e 's/src\///' | sed -e 's/\//\./g' | sed -e 's/\.hs$//'`
+ else
+ file=$x
+ fi
+ echo " * $file"
+ GIT_PAGER=cat git log --pretty=format:'%n%w(78,4,6)+ %s (%an)%n%n%w(78,6,6)%b%n' $lastmod..HEAD $x
+ fi
+done
+