From 16db345c47cbf97ea01e655d4eb00f9c4c52f361 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 10 Nov 2016 22:07:28 +0100 Subject: [PATCH] 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) --- util/process_docs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.40.0