2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2004-05-21 21:08:41 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
# Remove tasks from individual author entries from AUTHORS file
|
|
|
|
# for use in the about dialog.
|
|
|
|
#
|
|
|
|
# Must be called via perlnoutf.
|
2004-05-21 17:25:32 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
use strict;
|
2004-09-06 20:25:36 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
my $subinfo=0;
|
|
|
|
my $nextline;
|
2004-09-06 20:25:36 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
$_ = <>;
|
|
|
|
s/\xef\xbb\xbf//; # Skip UTF-8 byte order mark
|
|
|
|
print unless /^\n/;
|
2004-09-06 20:25:36 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
while (<>) {
|
|
|
|
if (/(.*){/) {
|
|
|
|
$subinfo = 1;
|
|
|
|
print "$1\n";
|
|
|
|
} elsif (/}/) {
|
|
|
|
$subinfo = 0;
|
|
|
|
if (($nextline = <>) !~ /^[\s]*$/) {
|
|
|
|
print $nextline;
|
|
|
|
}
|
|
|
|
} elsif ($subinfo == 1) {
|
|
|
|
next;
|
|
|
|
} else {
|
|
|
|
print;
|
|
|
|
}
|
|
|
|
}
|