openssl/util/extract-names.pl
Richard Levitte f19d064087 Handle des_modes.pod properly.
PR: 634
2003-06-11 19:44:40 +00:00

22 lines
324 B
Perl

#!/usr/bin/perl
$/ = ""; # Eat a paragraph at once.
while(<STDIN>) {
chop;
s/\n/ /gm;
if (/^=head1 /) {
$name = 0;
} elsif ($name) {
if (/ - /) {
s/ - .*//;
s/,[ \t]+/,/g;
push @words, split ',';
}
}
if (/^=head1 *NAME *$/) {
$name = 1;
}
}
print join("\n", @words),"\n";