wireshark/make-authors-short.pl
Guy Harris 7e1521119f From Graeme Hewson: make AUTHORS-SHORT not include formatting codes,
with AUTHORS-SHORT-FORMAT containing the formatting codes.

svn path=/trunk/; revision=12334
2004-10-17 23:03:11 +00:00

32 lines
475 B
Perl
Executable file

# $Id$
# Remove tasks from individual author entries from AUTHORS file
# for use in the about dialog.
#
# Must be called via perlnoutf.
use strict;
my $subinfo=0;
my $nextline;
$_ = <>;
s/\xef\xbb\xbf//; # Skip UTF-8 byte order mark
print unless /^\n/;
while (<>) {
if (/(.*){/) {
$subinfo = 1;
print "$1\n";
} elsif (/}/) {
$subinfo = 0;
if (($nextline = <>) !~ /^[\s]*$/) {
print $nextline;
}
} elsif ($subinfo == 1) {
next;
} else {
print;
}
}