From 84dc90292644bbe6308e3fffbe8bd6b060297371 Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 7 May 2002 23:09:28 +0000 Subject: [PATCH] * Makefile (distclean): New rule. * cvs2cl/fmtlog.rb: Eliminate the first colon from "* Makefile: (...): ". --- Makefile | 5 ++++- cvs2cl/fmtlog.rb | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cda70c8..6d4e160 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,9 @@ ChangeLog: cvs2cl --prune --no-wrap --usermap ./cvs2cl/usermap --gmt --stdout | \ ruby -p -i ./cvs2cl/fmtlog.rb > $@ -.PHONY: clean +.PHONY: clean distclean clean: -$(RM) $(GOMI) + +distclean: + -$(RM) ChangeLog diff --git a/cvs2cl/fmtlog.rb b/cvs2cl/fmtlog.rb index 490f19f..737c748 100644 --- a/cvs2cl/fmtlog.rb +++ b/cvs2cl/fmtlog.rb @@ -4,6 +4,8 @@ when /^\t(\* ([^:]+): )\* ([^: ]+)/ if files.split(/, /).member?(file) $_.slice!(data.begin(1) .. data.end(1) - 1) end +when /^\t\* [^:]+(:) \(/ + $_.slice!($~.begin(1) .. $~.end(1) - 1) when /^\d{4}-\d{2}-\d{2}( \d{2}:\d{2})/ $_.slice!($~.begin(1) .. $~.end(1) - 1) end -- 1.7.10.4