mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 21:13:38 +08:00
c2dc3ee8d9
PR: 856
27 lines
385 B
Perl
27 lines
385 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/,\s+/,/g;
|
|
s/\s+,/,/g;
|
|
s/^\s+//g;
|
|
s/\s+$//g;
|
|
s/\s/_/g;
|
|
push @words, split ',';
|
|
}
|
|
}
|
|
if (/^=head1 *NAME *$/) {
|
|
$name = 1;
|
|
}
|
|
}
|
|
|
|
print join("\n", @words),"\n";
|
|
|