diff options
Diffstat (limited to 'openssl/util/extract-names.pl')
-rw-r--r-- | openssl/util/extract-names.pl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/openssl/util/extract-names.pl b/openssl/util/extract-names.pl new file mode 100644 index 000000000..35bd6ed84 --- /dev/null +++ b/openssl/util/extract-names.pl @@ -0,0 +1,26 @@ +#!/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"; + |