08b1a125b32a5201d0aeb549ce077c17e5ee9b56
[openssl.git] / util / extract-section.pl
1 #! /usr/bin/env perl
2 # Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9 while(<STDIN>) {
10         if (/=for\s+comment\s+openssl_manual_section:(\S+)/)
11                 {
12                 print "$1\n";
13                 exit 0;
14                 }
15 }
16
17 print "$ARGV[0]\n";
18