source:
git/trunk/fixchangelog.pl
@
7bb8184
Last change on this file since 7bb8184 was 7bb8184, checked in by , 13 years ago | |
---|---|
|
|
File size: 455 bytes |
Line | |
---|---|
1 | #!/usr/bin/perl -w |
2 | use strict; |
3 | my $tag = $ARGV[0]; |
4 | while (1) { |
5 | my $x = ''; |
6 | my $sym_names = 0; |
7 | my $ok = 0; |
8 | while (<STDIN>) { |
9 | $x .= $_; |
10 | if ($sym_names) { |
11 | if (/^\s+([^:]*): /) { |
12 | $ok = 1 if ($1 eq $tag); |
13 | } else { |
14 | $sym_names = 0; |
15 | } |
16 | } |
17 | if (/^symbolic names:$/) { |
18 | $sym_names = 1; |
19 | } |
20 | |
21 | last if ($_ eq ('='x 77)."\n"); |
22 | } |
23 | $_ = <STDIN>; |
24 | $x .= $_ if defined $_; |
25 | print $x if $ok; |
26 | last if !defined $_; |
27 | } |
Note: See TracBrowser
for help on using the repository browser.