From: Richard Levitte Date: Fri, 29 Nov 2002 15:01:12 +0000 (+0000) Subject: Make it so all names mentioned in the NAME section of each manpage becomes a X-Git-Tag: OpenSSL_0_9_7-beta5~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d8f3cfb7fc05436687866c363e1cdbb3a5a7a3e;p=oweals%2Fopenssl.git Make it so all names mentioned in the NAME section of each manpage becomes a symlink to said manpage. PR: 242 --- diff --git a/Makefile.org b/Makefile.org index 9c0c08eeae..a70f7cc2f3 100644 --- a/Makefile.org +++ b/Makefile.org @@ -770,22 +770,30 @@ install_docs: for i in doc/apps/*.pod; do \ fn=`basename $$i .pod`; \ if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ - echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ + echo "installing man$$sec/$$fn.$$sec"; \ (cd `$(PERL) util/dirname.pl $$i`; \ sh -c "$$pod2man \ --section=$$sec --center=OpenSSL \ --release=$(VERSION) `basename $$i`") \ - > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ + > $(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; \ done; \ for i in doc/crypto/*.pod doc/ssl/*.pod; do \ fn=`basename $$i .pod`; \ if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \ - echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ + echo "installing man$$sec/$$fn.$$sec"; \ (cd `$(PERL) util/dirname.pl $$i`; \ sh -c "$$pod2man \ --section=$$sec --center=OpenSSL \ --release=$(VERSION) `basename $$i`") \ - > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ + > $(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; \ done # DO NOT DELETE THIS LINE -- make depend depends on it.