From 7ea919859abd5fc785d7ec83a905b2632b23e413 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sat, 7 Dec 2002 19:15:16 +0000 Subject: [PATCH] Automatically update ChangeLog as part of the commit process. --- ChangeLog | 10 ++++++++++ Makefile.am | 9 +++++++-- cvslog2changelog.pl | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 231ec022..09896f40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002/12/07 14:15:01 Thomas Roessler + + * doc/Makefile.in, ChangeLog, ChangeLog.old, Makefile.am, + cvslog2changelog.pl, mkchangelog.sh: Change the style of + ChangeLog: Now, the actual patch submitter's name is + extracted from the commit message and used for the change + log. For the moment, the date format doesn't match the one + in the old changelog. If you want to fix this, submit a + patch to cvslog2changelog.pl. ;-) + 2002/12/07 08:55:59 Vincent Lefevre * po/fr.po: update diff --git a/Makefile.am b/Makefile.am index 02a62ebf..28ad3135 100644 --- a/Makefile.am +++ b/Makefile.am @@ -154,9 +154,14 @@ pclean: check-security: ./check_sec.sh -commit: pclean check-security +commit-real: cvs commit +commit-changelog: + cvs commit -m "# changelog commit" + +commit: pclean check-security commit-real changelog commit-changelog + changelog: sh ./mkchangelog.sh | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog $(VISUAL) ChangeLog @@ -184,4 +189,4 @@ stamp-doc-rc: $(srcdir)/init.h makedoc Muttrc.head jtags: TAGS mkjtags ( ./mkjtags TAGS > tags.$$$$ && mv tags.$$$$ tags ) -.PHONY: jtags commit pclean check-security +.PHONY: jtags commit pclean check-security commit-real commit-changelog diff --git a/cvslog2changelog.pl b/cvslog2changelog.pl index 20934c31..37e7da27 100644 --- a/cvslog2changelog.pl +++ b/cvslog2changelog.pl @@ -21,7 +21,7 @@ while (<>) { } elsif ($_ =~ /^(=======|------)/) { if ($change->{revision}) { - push @Changes, $change; + push @Changes, $change unless $change->{logmsg} =~ /^#/; $change = {}; $change->{workfile} = $workfile; $change->{logmsg} = ''; -- 2.40.0