summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <richard@levitte.org>2016-11-10 22:07:28 +0100
committerRichard Levitte <richard@levitte.org>2016-11-10 23:13:48 +0100
commit16db345c47cbf97ea01e655d4eb00f9c4c52f361 (patch)
tree5f33cce75fbb3db1dd7373a0785cd080e3026318 /util
parent1ec574ae25a754d88f810304be3bfcb7b23101a8 (diff)
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 <michel.sales@free.fr> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1897)
Diffstat (limited to 'util')
-rw-r--r--util/process_docs.pl2
1 files changed, 1 insertions, 1 deletions
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};