From 536b9b677acd725db993d179529109636f62e00f Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Fri, 28 Nov 2014 10:22:56 -0600 Subject: [PATCH] libdockapp: Add update-changelog target to Makefile to update ChangeLog. --- libdockapp/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libdockapp/Makefile.am b/libdockapp/Makefile.am index aeaf39e..7e696de 100644 --- a/libdockapp/Makefile.am +++ b/libdockapp/Makefile.am @@ -24,3 +24,13 @@ dockapp.pc: Makefile @echo 'Cflags: -I${includedir}' >> $@ EXTRA_DIST = BUGS + +update-changelog: + @git log `git log -1 --pretty=%h -- ChangeLog`..HEAD \ + --pretty --numstat --summary | \ + git2cl | \ + sed 's/libdockapp: \?//g' | \ + sed 's/libdockapp\///g' > ChangeLog.new + @mv ChangeLog ChangeLog.old + @cat ChangeLog.new ChangeLog.old > ChangeLog + @rm ChangeLog.new ChangeLog.old