Make sure manual pages are properly linked to on systems that have case
authorRichard Levitte <levitte@openssl.org>
Sun, 15 Dec 2002 06:45:46 +0000 (06:45 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 15 Dec 2002 06:45:46 +0000 (06:45 +0000)
insensitive file names, as well as those that do not have symlinks.
Incidently, both these cases apply on DOS/Windows...

Makefile.org

index 3534cf1409a66c71d34a28ea5c970f066e24c42d..e6daf017d32fc2f43bf6cc10c2d6ae0cb2063d1b 100644 (file)
@@ -771,6 +771,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; \
@@ -780,10 +785,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`; \
@@ -794,10 +801,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.