summaryrefslogtreecommitdiff
path: root/util/extract-section.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/extract-section.pl')
-rw-r--r--util/extract-section.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/util/extract-section.pl b/util/extract-section.pl
new file mode 100644
index 000000000000..7a0ba4f69a7a
--- /dev/null
+++ b/util/extract-section.pl
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+
+while(<STDIN>) {
+ if (/=for\s+comment\s+openssl_manual_section:(\S+)/)
+ {
+ print "$1\n";
+ exit 0;
+ }
+}
+
+print "$ARGV[0]\n";
+