Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2017 05:56:50 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315053 - head/usr.bin/man
Message-ID:  <201703110556.v2B5uobY069779@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703110556.v2B5uobY069779>