diff options
| author | Jim Meyering | 2000-06-14 07:09:42 +0000 |
|---|---|---|
| committer | Jim Meyering | 2000-06-14 07:09:42 +0000 |
| commit | 2ca8a58743735beb968dc921e7816d4f73c93f25 (patch) | |
| tree | 54473da7b7c6200e9aa1a55af55fdac9a6821bc5 /lib-src | |
| parent | 25fa6debbea3ba1ac14ae834736340de85a44317 (diff) | |
| download | emacs-2ca8a58743735beb968dc921e7816d4f73c93f25.tar.gz emacs-2ca8a58743735beb968dc921e7816d4f73c93f25.zip | |
Fix typos in comments. Remove trailing blanks.
Diffstat (limited to 'lib-src')
| -rwxr-xr-x | lib-src/grep-changelog | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib-src/grep-changelog b/lib-src/grep-changelog index 4496a55b530..15f5196c270 100755 --- a/lib-src/grep-changelog +++ b/lib-src/grep-changelog | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #! /usr/bin/perl | 1 | #! /usr/bin/perl |
| 2 | # $Id: grep-changelog,v 1.1 1999/08/10 13:33:49 gerd Exp $ | 2 | # $Id: grep-changelog,v 1.2 2000/05/05 13:19:05 gerd Exp $ |
| 3 | 3 | ||
| 4 | # Copyright (C) 1999 Free Software Foundation, Inc. | 4 | # Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
| 5 | # | 5 | # |
| 6 | # This file is part of GNU Emacs. | 6 | # This file is part of GNU Emacs. |
| 7 | # | 7 | # |
| @@ -31,7 +31,7 @@ require 5; | |||
| 31 | # Parse command line options. | 31 | # Parse command line options. |
| 32 | 32 | ||
| 33 | use Getopt::Long; | 33 | use Getopt::Long; |
| 34 | $result = GetOptions ("author=s" => \$author, | 34 | $result = GetOptions ("author=s" => \$author, |
| 35 | "text=s" => \$regexp, | 35 | "text=s" => \$regexp, |
| 36 | "exclude=s" => \$exclude, | 36 | "exclude=s" => \$exclude, |
| 37 | "from-date=s" => \$from_date, | 37 | "from-date=s" => \$from_date, |
| @@ -55,7 +55,7 @@ Usage: $0 [options] [CHANGELOG...] | |||
| 55 | Print entries in ChangeLogs matching various criteria. Valid options | 55 | Print entries in ChangeLogs matching various criteria. Valid options |
| 56 | are | 56 | are |
| 57 | 57 | ||
| 58 | --author=AUTHOR match entries whose author line matches | 58 | --author=AUTHOR match entries whose author line matches |
| 59 | regular expression AUTHOR | 59 | regular expression AUTHOR |
| 60 | --text=TEXT match entries whose text matches regular | 60 | --text=TEXT match entries whose text matches regular |
| 61 | expression TEXT. | 61 | expression TEXT. |
| @@ -68,7 +68,7 @@ are | |||
| 68 | --help print this help | 68 | --help print this help |
| 69 | 69 | ||
| 70 | If no CHANGELOG is specified scan the files "ChangeLog" and | 70 | If no CHANGELOG is specified scan the files "ChangeLog" and |
| 71 | "ChangeLog.[9-1]" in the current directory. Old-style dates in ChangeLogs | 71 | "ChangeLog.[9-1]" in the current directory. Old-style dates in ChangeLogs |
| 72 | are not recognized. | 72 | are not recognized. |
| 73 | USAGE | 73 | USAGE |
| 74 | exit $help ? 0 : 1; | 74 | exit $help ? 0 : 1; |
| @@ -110,7 +110,7 @@ sub header_match_p ($) { | |||
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | 112 | ||
| 113 | # Value is non-zero if ENTRY matches the ciiteria specified on the | 113 | # Value is non-zero if ENTRY matches the criteria specified on the |
| 114 | # command line, i.e. it matches $regexp, and it doesn't match | 114 | # command line, i.e. it matches $regexp, and it doesn't match |
| 115 | # $exclude. | 115 | # $exclude. |
| 116 | 116 | ||
| @@ -118,7 +118,7 @@ sub entry_match_p ($) { | |||
| 118 | my $entry = shift; | 118 | my $entry = shift; |
| 119 | 119 | ||
| 120 | if ($regexp) { | 120 | if ($regexp) { |
| 121 | return 1 if ($entry =~ /$regexp/ | 121 | return 1 if ($entry =~ /$regexp/ |
| 122 | && (!$exclude || $entry !~ $exclude)); | 122 | && (!$exclude || $entry !~ $exclude)); |
| 123 | } else { | 123 | } else { |
| 124 | return 1 if !$exclude || $entry !~ $exclude; | 124 | return 1 if !$exclude || $entry !~ $exclude; |
| @@ -167,7 +167,7 @@ sub parse_changelog ($) { | |||
| 167 | if ($line =~ /^\S/) { | 167 | if ($line =~ /^\S/) { |
| 168 | # Line is an author-line. Print previous entry if | 168 | # Line is an author-line. Print previous entry if |
| 169 | # it matches. | 169 | # it matches. |
| 170 | print_log ($header, $entry) | 170 | print_log ($header, $entry) |
| 171 | if header_match_p ($header) && entry_match_p ($entry); | 171 | if header_match_p ($header) && entry_match_p ($entry); |
| 172 | 172 | ||
| 173 | $entry = ""; | 173 | $entry = ""; |
| @@ -177,12 +177,12 @@ sub parse_changelog ($) { | |||
| 177 | while (($line = <IN>) && $line =~ /^\s*$/) { | 177 | while (($line = <IN>) && $line =~ /^\s*$/) { |
| 178 | $header = "$header$line"; | 178 | $header = "$header$line"; |
| 179 | } | 179 | } |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | if ($line =~ /^\s*\*/) { | 182 | if ($line =~ /^\s*\*/) { |
| 183 | # LINE is the first line of a ChangeLog entry. Print | 183 | # LINE is the first line of a ChangeLog entry. Print |
| 184 | # previous entry if it matches. | 184 | # previous entry if it matches. |
| 185 | print_log ($header, $entry) | 185 | print_log ($header, $entry) |
| 186 | if header_match_p ($header) && entry_match_p ($entry); | 186 | if header_match_p ($header) && entry_match_p ($entry); |
| 187 | $entry = $line; | 187 | $entry = $line; |
| 188 | } else { | 188 | } else { |
| @@ -192,7 +192,7 @@ sub parse_changelog ($) { | |||
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | # Print last entry if it matches. | 194 | # Print last entry if it matches. |
| 195 | print_log ($header, $entry) | 195 | print_log ($header, $entry) |
| 196 | if header_match_p ($header) && entry_match_p ($entry); | 196 | if header_match_p ($header) && entry_match_p ($entry); |
| 197 | 197 | ||
| 198 | close IN; | 198 | close IN; |
| @@ -217,4 +217,4 @@ if (@ARGV > 0) { | |||
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | 219 | ||
| 220 | # gre-changelog ends here. | 220 | # grep-changelog ends here. |