summaryrefslogtreecommitdiff
path: root/libexec/makewhatis/makewhatis.sh
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-18 06:13:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-18 06:13:58 +0000
commite7c3e90b700ff86218d17c25e72ed42c8c3c5306 (patch)
treec87c816af2c6b371bb373ddd21856a78494869d2 /libexec/makewhatis/makewhatis.sh
parenta83de350c18f04c4859331ac616d2d08240fe61a (diff)
Fix misplace '>' vs. '>>'; John.P.Darrow@wheaton.edu
Diffstat (limited to 'libexec/makewhatis/makewhatis.sh')
-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