Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > fc0847760a99cc38b60a2ae56f03bf53 > files > 8

man-1.6d-2.el5.src.rpm

--- man-1.5p/src/makewhatis.sh.sec	2005-05-10 13:00:42.147542040 +0200
+++ man-1.5p/src/makewhatis.sh	2005-05-10 13:00:42.168538848 +0200
@@ -50,7 +50,7 @@
 defmanpath=$DEFMANPATH
 defcatpath=
 
-sections="1 2 3 4 5 6 7 8 9 n l"
+sections=`grep "MANSEC" /etc/man.config | sed -e "1d" -e "s/MANSECT//" -e "s/:/ /g"`
 whatisdb=$DEFWHATIS
 
 for name in "$@"
--- man-1.5p/src/man.conf.in.sec	2005-05-10 13:00:42.000000000 +0200
+++ man-1.5p/src/man.conf.in	2005-05-10 13:01:11.615062296 +0200
@@ -115,7 +115,7 @@
 # Default manual sections (and order) to search if -S is not specified
 # and the MANSECT environment variable is not set.
 #
-MANSECT		1:1p:8:2:3:3p:4:5:6:7:9:0p:tcl:n:l:p:o
+MANSECT		1:1p:8:2:3:3p:4:5:6:7:9:0p:n:l:p:o
 #
 # Default options to use when man is invoked without options
 # This is mainly for the benefit of those that think -a should be the default