]> granicus.if.org Git - openssl/commitdiff
Small fixup of util/process_docs.pl
authorRichard Levitte <richard@levitte.org>
Thu, 10 Nov 2016 21:07:28 +0000 (22:07 +0100)
committerRichard Levitte <richard@levitte.org>
Thu, 10 Nov 2016 22:13:48 +0000 (23:13 +0100)
Apparently, pod2html doesn't add ".html" at the end of links, making
them useless, so we need to fix that

With thanks for the report to Michel <michel.sales@free.fr>

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1897)

util/process_docs.pl

index 8b8de81acdaadac0521a25668239903f7c4f51e6..9834dbe39d73e19db59fd05615c68ba2156455ba 100644 (file)
@@ -105,7 +105,7 @@ foreach my $subdir (keys %{$options{subdir}}) {
                 if $options{debug};
             unless ($options{"dry-run"}) {
                 @output = `$generate`;
-                map { s|href="http://man\.he\.net/man|href="../man|g; } @output
+                map { s|href="http://man\.he\.net/(man\d/[^"]+)(?:\.html)?"|href="../$1.html|g; } @output
                     if $options{type} eq "html";
             }
             print STDERR "DEBUG: Done processing\n" if $options{debug};