wireshark/make-authors-short.pl
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00

28 lines
385 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\r]*$/) {
print $nextline;
}
} elsif ($subinfo == 1) {
next;
} else {
print;
}
}