Deal with pod2html issues, in this case the lack of .html suffix in links
authorRichard Levitte <levitte@openssl.org>
Fri, 1 Jul 2016 17:06:37 +0000 (19:06 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 1 Jul 2016 17:06:37 +0000 (19:06 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl

index 20fd1d67838d53b09316ab19a85a629141972f74..6dbed436f2ed34780a86b1aef2716a2ee50286c2 100644 (file)
@@ -628,7 +628,7 @@ install_html_docs:
        OUTTOP="$(DESTDIR)$(HTMLDIR)"; \
        GENERATE="pod2html --podroot=$(SRCDIR)/doc --htmldir=.. \
                           --podpath=apps:crypto:ssl --title=\$$Name \
-                 | sed -e 's|href=\"http://man.he.net/man|href=\"../man|g'"; \
+                 | perl -pe 's|href=\"http://man.he.net/man|href=\"../man|g; s|href=\"(.*/man.*)(?<!\.html)\">|href=\"\$$1.html\">|g;'"; \
        $(PROCESS_PODS)
 
 uninstall_html_docs: