Revision e7b9d9be48cdc598a46c8e1536035ed29a9af254 authored by Matt Caswell on 24 July 2014, 22:33:34 UTC, committed by Matt Caswell on 06 August 2014, 19:27:51 UTC
Reviewed-by: Emilia Käsper <emilia@openssl.org>
1 parent 2172d4f
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 ...