wireshark/make-authors-short.pl
Gerald Combs de0e336434 From Graeme Hewson: Keep the list of authors in the Ethereal man page from
wrapping, and fix the title.

svn path=/trunk/; revision=11727
2004-08-12 21:45:12 +00:00

29 lines
425 B
Perl
Executable file

#!/usr/bin/perl -w
# $Id$
# Remove tasks from individual author entries from AUTHORS file
# for use in the about dialog.
use strict;
my $subinfo=0;
my $nextline;
while (<>) {
if (/(.*){/) {
$subinfo = 1;
print "$1\n";
} elsif (/}/) {
$subinfo = 0;
if (($nextline = <>) !~ /^[\s]*$/) {
print $nextline;
}
} elsif ($subinfo == 1) {
next;
} else {
s/^$/ /; # Make it a verbatim paragraph
print;
}
}