Author: bapt
Date: Sat Mar 11 05:56:50 2017
New Revision: 315053
URL: https://svnweb.freebsd.org/changeset/base/315053

Log:
  Add share/man if it exists to the MANPATH
  
  localbase is not consistent with base for manpages:
  /usr/local/man vs /usr/share/man adding share/man allows to fix that
  inconsistency and would permit to remove tons of patches/modifications in the
  ports tree

Modified:
  head/usr.bin/man/man.sh

Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh     Sat Mar 11 05:12:39 2017        (r315052)
+++ head/usr.bin/man/man.sh     Sat Mar 11 05:56:50 2017        (r315053)
@@ -771,6 +771,8 @@ search_path() {
                                case "$path" in
                                */bin)  p="${path%/bin}/man"
                                        add_to_manpath "$p"
+                                       p="${path%/bin}/share/man"
+                                       add_to_manpath "$p"
                                        ;;
                                *)      ;;
                                esac
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to