git.iko.soy/typeable/pandoc
on master help sign in
Added tools/changelog-helper.sh.
commit9df4c7f57b61fce1676aadfc8aece076398be2cc authorJohn MacFarlane <jgm@berkeley.edu> dateTue 2 Oct 2018, 22:41 (8 years ago) parent7570613
2 files changed+24−2
RELEASE-CHECKLIST+1−2 tools/changelog-helper.sh+23
RELEASE-CHECKLIST+1−2
@@ -1,8 +1,7 @@
11[ ] make README.md and commit if needed
22[ ] make man/pandoc.1 and commit if needed
33[ ] Finalize changelog
4− git log --pretty='format:%n%n* %s (%an)%n%b%n%h%n' \
5− --reverse --name-only LASTRELEASE..HEAD > LOG
4+ tools/changelog-helper.sh
65[ ] make packages
76[ ] make update-website
87[ ] make trypandoc
tools/changelog-helper.shnew file+23
@@ -0,0 +1,23 @@
1+#!/bin/sh
2+# generate preliminary list of changes since changelog
3+# was last modified
4+
5+lastmod=`git log -n2 --format=oneline changelog | awk '{print $1;}'`
6+#git log --format=oneline $starthash..HEAD
7+files=`git ls-tree -r master --name-only`
8+for x in $files
9+do
10+ commits=`git log -n1 $lastmod..HEAD $x`
11+ if [[ ! -z $commits ]]
12+ then
13+ if echo $x | grep -q "src\/.*\.hs"
14+ then
15+ file=`echo $x | sed -e 's/src\///' | sed -e 's/\//\./g' | sed -e 's/\.hs$//'`
16+ else
17+ file=$x
18+ fi
19+ echo " * $file"
20+ 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
21+ fi
22+done
23+