diff options
| author | frueauf <frueauf@NetBSD.org> | 1998-05-23 14:26:05 +0000 |
|---|---|---|
| committer | frueauf <frueauf@NetBSD.org> | 1998-05-23 14:26:05 +0000 |
| commit | 21fc3e02fdffe05e49bbc42a1df261e9c5de247b (patch) | |
| tree | a4316ef0884069ddc7c6b2551963b6c8d689fa7a /libexec/makewhatis | |
| parent | 044f139d81c593c8999a9232b9822038a9befaa3 (diff) | |
Don't ignore compressed unformatted man pages and use $MKWHATIS where
makewhatis.sed should be used.
Diffstat (limited to 'libexec/makewhatis')
| -rw-r--r-- | libexec/makewhatis/makewhatis.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libexec/makewhatis/makewhatis.sh b/libexec/makewhatis/makewhatis.sh index d7f97e00263..73ee97b499a 100644 --- a/libexec/makewhatis/makewhatis.sh +++ b/libexec/makewhatis/makewhatis.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: makewhatis.sh,v 1.15 1998/05/23 13:42:25 tv Exp $ +# $NetBSD: makewhatis.sh,v 1.16 1998/05/23 14:26:05 frueauf Exp $ # # written by matthew green <mrg@eterna.com.au>, based on the # original by J.T. Conklin <jtc@netbsd.org> and Thorsten @@ -35,6 +35,12 @@ find $MANDIR \( -type f -o -type l \) -name '*.[0-9]*' -ls | \ egrep '\.[1-9]$' $LIST | xargs /usr/libexec/getNAME | \ sed -e 's/ [a-zA-Z0-9]* \\-/ -/' > $TMP +egrep '\.[1-9].(gz|Z)$' $LIST | while read file +do + gzip -fdc $file | nroff -man | \ + sed -n -f $MKWHATIS; +done >> $TMP + egrep '\.0$' $LIST | while read file do sed -n -f $MKWHATIS $file; @@ -42,7 +48,7 @@ done >> $TMP egrep '\.[0].(gz|Z)$' $LIST | while read file do - gzip -fdc $file | sed -n -f $MANDIR/makewhatis.sed; + gzip -fdc $file | sed -n -f $MKWHATIS; done >> $TMP sort -u -o $TMP $TMP |
