URI: 
       tsig: consult unix man pages too - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a490444938eff6c12b7a7d7a5a8fcd4e68a101a1
   DIR parent 272c1fb2d928168074798cf2a467591121273478
  HTML Author: Russ Cox <rsc@swtch.com>
       Date:   Sat,  6 Dec 2008 16:46:30 -0800
       
       sig: consult unix man pages too
       
       Diffstat:
         M bin/sig                             |      17 +++++++++++++++++
       
       1 file changed, 17 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/bin/sig b/bin/sig
       t@@ -9,6 +9,12 @@ if(~ $#* 0){
                exit 1
        }
        
       +noplan9=()
       +for(p in $path) {
       +        if(! ~ $p $PLAN9/bin)
       +                noplan9=($noplan9 $p)
       +}        
       +
        for (i) {
                files=`{grep -il '[         ]\*?'$i'\(' $PLAN9/man/man3/*.3*}
                for(j in $files) {
       t@@ -24,6 +30,17 @@ for (i) {
                                        s/[         ]+/ /g' |
                                grep -i -e '[         ]\*?'$i'\(' | sed 's/^[ +]/        /'
                }
       +        { path=$noplan9; man 2 $i; man 3 $i } >[2]/dev/null | nobs | sed -n '
       +                :d
       +                /SYNOPSIS/bp
       +                n
       +                bd
       +                :p
       +                /DESCRIPTION/bd
       +                p
       +                n
       +                bp
       +        ' | grep -i -e '[         ]\*?'$i'\(' | sed 's/^[ +]/        /'
        }
        
        exit 0