libdockapp: Add update-changelog target to Makefile to update ChangeLog.

This commit is contained in:
Doug Torrance 2014-11-28 10:22:56 -06:00 committed by Carlos R. Mafra
parent 69a7c6f39b
commit 536b9b677a

View file

@ -24,3 +24,13 @@ dockapp.pc: Makefile
@echo 'Cflags: -I${includedir}' >> $@ @echo 'Cflags: -I${includedir}' >> $@
EXTRA_DIST = BUGS 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