diff options
author | Richard Levitte <levitte@openssl.org> | 2002-12-15 06:45:43 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-12-15 06:45:43 +0000 |
commit | ec9f67f6101a77d70236e98c8ef163d6982536bb (patch) | |
tree | 719766bc71730a854864440ac4dc2ba9a01dc3c6 /Makefile.org | |
parent | 30c08f2e3d7f7dca254d8341cdecc7ad37a9f62a (diff) |
Make sure manual pages are properly linked to on systems that have case
insensitive file names, as well as those that do not have symlinks.
Incidently, both these cases apply on DOS/Windows...
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Makefile.org b/Makefile.org index a3ae233aca..1c7b5c5325 100644 --- a/Makefile.org +++ b/Makefile.org @@ -538,6 +538,11 @@ install_docs: $(INSTALL_PREFIX)$(MANDIR)/man5 \ $(INSTALL_PREFIX)$(MANDIR)/man7 @pod2man="`cd util; ./pod2mantest $(PERL)`"; \ + here="`pwd`"; \ + filecase=; \ + if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" ]; then \ + filecase=-i; \ + fi; \ for i in doc/apps/*.pod; do \ fn=`basename $$i .pod`; \ if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ @@ -547,10 +552,12 @@ install_docs: --section=$$sec --center=OpenSSL \ --release=$(VERSION) `basename $$i`") \ > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$$sec; \ - $(PERL) util/extract-names.pl < $$i | grep -v "^$$fn" | \ - while read n; do \ - util/point.sh $$fn.$$sec $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$n.$$sec; \ - done; \ + $(PERL) util/extract-names.pl < $$i | \ + grep -v $$filecase "^$$fn\$$" | \ + (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ + while read n; do \ + $$here/util/point.sh $$fn.$$sec $$n.$$sec; \ + done); \ done; \ for i in doc/crypto/*.pod doc/ssl/*.pod; do \ fn=`basename $$i .pod`; \ @@ -561,10 +568,12 @@ install_docs: --section=$$sec --center=OpenSSL \ --release=$(VERSION) `basename $$i`") \ > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$$sec; \ - $(PERL) util/extract-names.pl < $$i | grep -v "^$$fn" | \ - while read n; do \ - util/point.sh $$fn.$$sec $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$n.$$sec; \ - done; \ + $(PERL) util/extract-names.pl < $$i | \ + grep -v $$filecase "^$$fn\$$" | \ + (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ + while read n; do \ + $$here/util/point.sh $$fn.$$sec $$n.$$sec; \ + done); \ done # DO NOT DELETE THIS LINE -- make depend depends on it. |