summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/makewhatis/makewhatis.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/makewhatis/makewhatis.sh b/libexec/makewhatis/makewhatis.sh
index 814f6117495..e8cda8d8232 100644
--- a/libexec/makewhatis/makewhatis.sh
+++ b/libexec/makewhatis/makewhatis.sh
@@ -6,7 +6,7 @@
#
# Public domain.
#
-# $OpenBSD: makewhatis.sh,v 1.5 1997/11/13 04:40:15 millert Exp $
+# $OpenBSD: makewhatis.sh,v 1.6 1997/11/18 06:13:57 millert Exp $
#
PATH=/usr/bin:/bin; export PATH
@@ -30,12 +30,12 @@ find $MANDIR \( -type f -o -type l \) -name '*.[0-9]*' -ls | \
sort -n | awk '{if (u[$1]) next; u[$1]++ ; print $11}' > $LIST
egrep '\.[1-9]$' $LIST | xargs /usr/libexec/getNAME | \
- sed -e 's/ [a-zA-Z0-9]* \\-/ -/' >> $WHATIS
+ sed -e 's/ [a-zA-Z0-9]* \\-/ -/' > $WHATIS
egrep '\.0$' $LIST | while read file
do
sed -n -f /usr/share/man/makewhatis.sed $file;
-done > $WHATIS
+done >> $WHATIS
egrep '\.[0].(gz|Z)$' $LIST | while read file
do