From: Richard Levitte Date: Thu, 10 Nov 2016 21:07:28 +0000 (+0100) Subject: Small fixup of util/process_docs.pl X-Git-Tag: OpenSSL_1_1_0d~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16db345c47cbf97ea01e655d4eb00f9c4c52f361;p=openssl Small fixup of util/process_docs.pl 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 Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1897) --- diff --git a/util/process_docs.pl b/util/process_docs.pl index 8b8de81acd..9834dbe39d 100644 --- a/util/process_docs.pl +++ b/util/process_docs.pl @@ -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};