tTweaks for rsc's environment. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f2a700e22af3cf792837935f8e8ed42d533d552e
 (DIR) parent 6d7a57dea4e27ace711c44d844d4418fe786160d
 (HTM) Author: wkj <devnull@localhost>
       Date:   Wed, 21 Apr 2004 03:25:35 +0000
       
       Tweaks for rsc's environment.
       
       Diffstat:
         M bin/man9                            |      10 +++++-----
       
       1 file changed, 5 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/bin/man9 b/bin/man9
       t@@ -10,23 +10,23 @@ while [ $# -gt 0 ] ; do
        done
        
        if [ "X$sec" = "X" ] ; then
       -    sec=`ls -d $root/[0-9]* | sed -e 's;/$;;' -e 's;^.*/;;'`
       +    sec=`ls -d $root/man[0-9]* | sed -e 's;/$;;' -e 's;^.*/man;;'`
        fi
        
        pat='^('`echo $* | sed -e 's; ;|;g'`')' ;
        for s in $sec ; do
            if [ -f $root/$s/INDEX ] ; then
       -        try=`grep -E $pat $root/$s/INDEX | sed -e 's;^[^ ]* ;;'` ;
       +        try=`grep -E $pat $root/man$s/INDEX | sed -e 's;^[^ ]* ;;'` ;
            fi
            if [ "X$try" != "X" ] ; then
                for f in $try ; do
       -            files="$files $root/$s/$f";
       +            files="$files $root/man$s/$f.$s";
                done
                try="";
            fi
            for f in $* ; do
       -        if [ -f $root/$s/$f ] ; then
       -            files="$files $root/$s/$f" ;
       +        if [ -f $root/man$s/$f.$s ] ; then
       +            files="$files $root/man$s/$f.$s" ;
                fi
            done
        done