Mercurial > emacs
annotate lib-src/grep-changelog @ 62242:cce9501aab6e
(sh-mode-default-syntax-table): Set the
syntax of $ to "'" (quote).
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Wed, 11 May 2005 22:57:25 +0000 |
parents | bdf4aa3226e7 |
children | 23a17af379b1 |
rev | line source |
---|---|
28823 | 1 #! /usr/bin/perl |
25216 | 2 |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
3 # Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc. |
25216 | 4 # |
5 # This file is part of GNU Emacs. | |
6 # | |
7 # GNU Emacs is free software; you can redistribute it and/or modify | |
8 # it under the terms of the GNU General Public License as published by | |
9 # the Free Software Foundation; either version 2, or (at your option) | |
10 # any later version. | |
11 # | |
12 # GNU Emacs is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with GNU Emacs; see the file COPYING. If not, write to the | |
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 # Boston, MA 02111-1307, USA. | |
21 | |
22 | |
23 # Extract entries from ChangeLogs matching specified criteria. | |
24 # Optionally format the resulting output to a form suitable for RCS | |
25 # logs, like they are used in Emacs, for example. In this format, | |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
26 # author lines, leading spaces, and file names are removed. |
25216 | 27 |
28 require 5; | |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
29 use strict; |
25216 | 30 |
31 # Parse command line options. | |
32 | |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
33 use vars qw($author $regexp $exclude $from_date $to_date |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
34 $rcs_log $with_date $version $help $reverse |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
35 @entries); |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
36 |
25216 | 37 use Getopt::Long; |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
38 my $result = GetOptions ("author=s" => \$author, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
39 "text=s" => \$regexp, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
40 "exclude=s" => \$exclude, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
41 "from-date=s" => \$from_date, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
42 "to-date=s" => \$to_date, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
43 "rcs-log" => \$rcs_log, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
44 "with-date" => \$with_date, |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
45 "reverse!" => \$reverse, |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
46 "version" => \$version, |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
47 "help" => \$help); |
25216 | 48 |
49 # If date options are specified, check that they have the format | |
50 # YYYY-MM-DD. | |
51 | |
52 $result = 0 if $from_date && $from_date !~ /^\d\d\d\d-\d\d-\d\d$/; | |
53 $result = 0 if $to_date && $to_date !~ /^\d\d\d\d-\d\d-\d\d$/; | |
54 | |
55 # Print usage information and exit when necessary. | |
56 | |
57 if ($result == 0 || $help) { | |
58 print <<USAGE; | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
59 |
25216 | 60 Usage: $0 [options] [CHANGELOG...] |
61 | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
62 Print entries in ChangeLogs matching various criteria. |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
63 Valid options are: |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
64 |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
65 --author=AUTHOR Match entries whose author line matches |
25216 | 66 regular expression AUTHOR |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
67 --text=TEXT Match entries whose text matches regular |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
68 expression TEXT |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
69 --exclude=TEXT Exclude entries matching TEXT |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
70 --from-date=YYYY-MM-DD Match entries not older than given date |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
71 --to-date=YYYY-MM-DD Match entries not younger than given date |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
72 --rcs-log Format output suitable for RCS log entries |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
73 --with-date Print short date line in RCS log |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
74 --reverse Show entries in reverse (chronological) order |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
75 --version Print version info |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
76 --help Print this help |
25216 | 77 |
78 If no CHANGELOG is specified scan the files "ChangeLog" and | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
79 "ChangeLog.1+" in the current directory. Old-style dates in ChangeLogs |
25216 | 80 are not recognized. |
81 USAGE | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
82 exit !$help; |
25216 | 83 } |
84 | |
85 # Print version info and exit if `--version' was specified. | |
86 | |
87 if ($version) { | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
88 print "0.2\n"; |
25216 | 89 exit 0; |
90 } | |
91 | |
92 | |
93 # Value is non-zero if HEADER matches according to command line | |
94 # options specified, i.e. it matches $author, and its date is in | |
95 # the range $from_date <= date <= $to_date. | |
96 | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
97 sub header_match_p { |
25216 | 98 my $header = shift; |
99 | |
38502
180f542bf5b4
(entry_match_p, header_match_p): Fix handling of null or empty
Gerd Moellmann <gerd@gnu.org>
parents:
38500
diff
changeset
|
100 return 0 unless $header; |
180f542bf5b4
(entry_match_p, header_match_p): Fix handling of null or empty
Gerd Moellmann <gerd@gnu.org>
parents:
38500
diff
changeset
|
101 |
25216 | 102 # No match if AUTHOR-regexp specified and doesn't match. |
103 return 0 if $author && $header !~ /$author/; | |
104 | |
105 # Check that the date of the entry matches if date options | |
106 # `--from-date' and/or `--to-date' were specified . Old-style | |
107 # dates in ChangeLogs are not recognized, and never match. | |
108 if ($from_date || $to_date) { | |
109 if ($header =~ /^(\d\d\d\d-\d\d-\d\d)/) { | |
110 my $date = $1; | |
111 return 0 if $from_date && $date lt $from_date; | |
112 return 0 if $to_date && $date gt $to_date; | |
113 } else { | |
114 # Don't bother recognizing old-style dates. | |
115 return 0; | |
116 } | |
117 } | |
118 | |
119 return 1; | |
120 } | |
121 | |
122 | |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
123 # Value is non-zero if ENTRY matches the criteria specified on the |
25216 | 124 # command line, i.e. it matches $regexp, and it doesn't match |
125 # $exclude. | |
126 | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
127 sub entry_match_p { |
25216 | 128 my $entry = shift; |
129 | |
38502
180f542bf5b4
(entry_match_p, header_match_p): Fix handling of null or empty
Gerd Moellmann <gerd@gnu.org>
parents:
38500
diff
changeset
|
130 return 0 unless $entry; |
180f542bf5b4
(entry_match_p, header_match_p): Fix handling of null or empty
Gerd Moellmann <gerd@gnu.org>
parents:
38500
diff
changeset
|
131 |
25216 | 132 if ($regexp) { |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
133 return 1 if ($entry =~ /$regexp/ |
25216 | 134 && (!$exclude || $entry !~ $exclude)); |
135 } else { | |
136 return 1 if !$exclude || $entry !~ $exclude; | |
137 } | |
138 | |
139 return 0; | |
140 } | |
141 | |
142 | |
143 # Print HEADER and/or ENTRY in a format suitable for what was | |
144 # specified on the command line. If $rcs_log is specified, author | |
145 # lines are not printed, and leading spaces and file names are removed | |
146 # from ChangeLog entries. | |
147 | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
148 sub print_log { |
25216 | 149 my ($header, $entry) = @_; |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
150 my $output = ''; |
25216 | 151 |
152 if ($rcs_log) { | |
153 # Remove leading whitespace from entry. | |
154 $entry =~ s/^\s+//mg; | |
155 # Remove file name parts. | |
156 $entry =~ s/^\*.*\(/(/mg; | |
157 # Remove file name parts, 2. | |
158 $entry =~ s/^\*.*://mg; | |
159 if ($with_date) { | |
160 $header =~ /(\d\d\d\d-\d\d-\d\d)/; | |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
161 $output = "!changelog-date $1\n"; |
25216 | 162 } |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
163 $output .= $entry; |
25216 | 164 } else { |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
165 $output .= $header . $entry; |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
166 } |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
167 |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
168 if ($reverse) { |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
169 push @entries, $output; |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
170 } else { |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
171 print $output; |
25216 | 172 } |
173 } | |
174 | |
175 # Scan LOG for matching entries, and print them to standard output. | |
176 | |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
177 sub parse_changelog { |
25216 | 178 my $log = shift; |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
179 my $entry = undef; |
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
180 my $header = undef; |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
181 |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
182 @entries = () if $reverse; |
25216 | 183 |
184 # Open the ChangeLog. | |
185 open (IN, "< $log") || die "Cannot open $log: $!"; | |
186 | |
38509
59acf1c91dd2
(main, parse_changelog): Make "use strict"-clean.
Gerd Moellmann <gerd@gnu.org>
parents:
38504
diff
changeset
|
187 while (defined(my $line = <IN>)) { |
25216 | 188 if ($line =~ /^\S/) { |
189 # Line is an author-line. Print previous entry if | |
190 # it matches. | |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
191 print_log ($header, $entry) |
25216 | 192 if header_match_p ($header) && entry_match_p ($entry); |
193 | |
194 $entry = ""; | |
195 $header = $line; | |
196 | |
197 # Add empty lines below the header. | |
38500
3db3b0888252
(parse_changelog): Add test for defined value to
Gerd Moellmann <gerd@gnu.org>
parents:
29638
diff
changeset
|
198 while (defined($line = <IN>) && $line =~ /^\s*$/) { |
25216 | 199 $header = "$header$line"; |
200 } | |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
201 } |
25216 | 202 |
38504
1d53627a58ae
(parse_changelog): Add another test for defined value to
Gerd Moellmann <gerd@gnu.org>
parents:
38502
diff
changeset
|
203 last unless defined $line; |
1d53627a58ae
(parse_changelog): Add another test for defined value to
Gerd Moellmann <gerd@gnu.org>
parents:
38502
diff
changeset
|
204 |
25216 | 205 if ($line =~ /^\s*\*/) { |
206 # LINE is the first line of a ChangeLog entry. Print | |
207 # previous entry if it matches. | |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
208 print_log ($header, $entry) |
25216 | 209 if header_match_p ($header) && entry_match_p ($entry); |
210 $entry = $line; | |
211 } else { | |
212 # Add LINE to the current entry. | |
213 $entry = "$entry$line"; | |
214 } | |
215 } | |
216 | |
217 # Print last entry if it matches. | |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
218 print_log ($header, $entry) |
25216 | 219 if header_match_p ($header) && entry_match_p ($entry); |
220 | |
221 close IN; | |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
222 |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
223 if ($reverse) { |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
224 for (my $entry = @entries; $entry; $entry--) { |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
225 print $entries[$entry-1]; |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
226 } |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
227 } |
25216 | 228 } |
229 | |
230 | |
231 # Main program. Process ChangeLogs. | |
232 | |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
233 # If files were specified on the command line, parse those files in the |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
234 # order supplied by the user; otherwise parse default files ChangeLog and |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
235 # ChangeLog.1+ according to $reverse. |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
236 unless (@ARGV > 0) { |
54324
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
237 @ARGV = ("ChangeLog"); |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
238 |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
239 push @ARGV, |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
240 map {"ChangeLog.$_"} |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
241 sort {$b <=> $a} |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
242 map {/\.(\d+)$/; $1} |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
243 do { |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
244 opendir D, '.'; |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
245 grep /^ChangeLog\.\d+$/, readdir D; |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
246 }; |
bdf4aa3226e7
Changes to support ChangeLog.10+.
Juanma Barranquero <lekktu@gmail.com>
parents:
52401
diff
changeset
|
247 |
38551
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
248 @ARGV = reverse @ARGV if $reverse; |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
249 } |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
250 |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
251 while (defined (my $log = shift @ARGV)) { |
6bd3c93022e7
(parse_changelog): Remove unused local variable.
Gerd Moellmann <gerd@gnu.org>
parents:
38510
diff
changeset
|
252 parse_changelog ($log) if -f $log; |
25216 | 253 } |
254 | |
255 | |
52401 | 256 # arch-tag: 9e4f6749-e053-4bb7-b3ad-11947318418e |
29638
f6a97d806845
Fix typos in comments. Remove trailing blanks.
Jim Meyering <jim@meyering.net>
parents:
28823
diff
changeset
|
257 # grep-changelog ends here. |