Revision 323d39e87f86bc4524881942aafc7539532aefff authored by Matt Caswell on 22 January 2015, 03:30:12 UTC, committed by Matt Caswell on 22 January 2015, 09:31:48 UTC
Reviewed-by: Tim Hudson <tjh@openssl.org>
1 parent ae5c866
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 ...