5 # $ time dpkg-parsechangelog >/dev/null
10 # $ time ~/things/Dgit/dgit/tests/tstunt/dpkg-parsechangelog >/dev/null
17 $SIG{__WARN__} = sub { die $_[0]; }; # no use of system, so we avoid #793471
19 my $infile = "debian/changelog";
21 if (@ARGV && $ARGV[0] =~ s/^-l//) {
22 $infile = shift @ARGV;
28 open C, $infile or die $!;
31 m/^(\S+) \(([^()]+)\) (\S+)\; urgency=(\S+)$/ or die "$!, $_ ?";
32 print <<END or die $!;
44 if (m/^ -- ([^<>]+\<\S+\>) (\w[^<>]+\w)$/) {
45 print <<END or die $!;
50 } elsif (m/^ --\s*$/) {
55 print " .\n" x $blanks or die $!;
57 print " $_" or die $!;