Revision 081314d07705aa58912845c213a48414d8f616a9 authored by Matt Caswell on 26 January 2017, 13:22:36 UTC, committed by Matt Caswell on 26 January 2017, 13:22:36 UTC
Reviewed-by: Richard Levitte <levitte@openssl.org>
1 parent 06f87e9
extract-names.pl
#!/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";

Computing file changes ...