]>
git.ipfire.org Git - thirdparty/openssl.git/blob - util/mkpod2html.pl
2 # Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (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
17 our($opt_i); # -i INFILE
18 our($opt_o); # -o OUTFILE
19 our($opt_t); # -t TITLE
20 our($opt_r); # -r PODROOT
23 die "-i flag missing" unless $opt_i;
24 die "-o flag missing" unless $opt_o;
25 die "-t flag missing" unless $opt_t;
26 die "-r flag missing" unless $opt_r;
33 "--podpath=man1:man3:man5:man7",
38 or die "Can't read $opt_o, $!";
48 s
|href
="http://man\.he\.net/(man\d/[^"]+)(?
:\
.html
)?
"|href="../$1.html
|g
;
50 or die "Can't write $opt_o, $!";