diff options
author | Ulf Möller <ulf@openssl.org> | 2006-04-11 21:09:57 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2006-04-11 21:09:57 +0000 |
commit | 60cdb821db3403481c891b570d163d28f041ec02 (patch) | |
tree | 3538c6ce1cdc0129079c1e4986d525f1f1f502e0 /Makefile.org | |
parent | 0ef888cd3e53fe5aef1d1e787b111626c2ddd569 (diff) | |
download | openssl-60cdb821db3403481c891b570d163d28f041ec02.tar.gz |
manual pages as HTML
Submitted by: Oliver Tappe <zooey@hirschkaefer.de>
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile.org b/Makefile.org index d9d6267a4a..d383b92ad4 100644 --- a/Makefile.org +++ b/Makefile.org @@ -130,6 +130,8 @@ MANDIR=$(OPENSSLDIR)/man MAN1=1 MAN3=3 MANSUFFIX= +HTMLSUFFIX=html +HTMLDIR=$(OPENSSLDIR)/html SHELL=/bin/sh TOP= . @@ -540,6 +542,27 @@ install_sw: cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/openssl.pc +install_html_docs: + here="`pwd`"; \ + for subdir in apps crypto ssl; do \ + mkdir -p $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir; \ + for i in doc/$$subdir/*.pod; do \ + fn=`basename $$i .pod`; \ + echo "installing html/$$fn.$(HTMLSUFFIX)"; \ + cat $$i \ + | sed -r 's/L<([^)]*)(\([0-9]\))?\|([^)]*)(\([0-9]\))?>/L<\1|\3>/g' \ + | pod2html --podroot=doc --htmlroot=.. --podpath=apps:crypto:ssl \ + | sed -r 's/<!DOCTYPE.*//g' \ + > $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir/$$fn.$(HTMLSUFFIX); \ + $(PERL) util/extract-names.pl < $$i | \ + grep -v $$filecase "^$$fn\$$" | \ + (cd $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir; \ + while read n; do \ + $$here/util/point.sh $$fn.$(HTMLSUFFIX) "$$n".$(HTMLSUFFIX); \ + done); \ + done; \ + done + install_docs: @$(PERL) $(TOP)/util/mkdir-p.pl \ $(INSTALL_PREFIX)$(MANDIR)/man1 \ |