summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-05-17 12:09:01 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-05-17 12:09:01 +0000
commit9b6591bef5dafc28f04ef442567de9ef28b0d80e (patch)
tree0d2a322935dfa784136f5b9695a539e98ed4e042 /libexec/makewhatis
parentc5d5bbfda12431eb4fb42bc3b4c42a9cf2a2e6ae (diff)
A non existent directory should not prevent makewhatis from looking
further. Noticed by Jon Ribbens <jon@oaktree.co.uk>
Diffstat (limited to 'libexec/makewhatis')
-rw-r--r--libexec/makewhatis/makewhatis.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl
index 4b52bed4990..5caf2d4db3e 100644
--- a/libexec/makewhatis/makewhatis.pl
+++ b/libexec/makewhatis/makewhatis.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
# ex:ts=8 sw=4:
-# $OpenBSD: makewhatis.pl,v 1.9 2000/04/29 20:40:04 espie Exp $
+# $OpenBSD: makewhatis.pl,v 1.10 2000/05/17 12:09:00 espie Exp $
#
# Copyright (c) 2000 Marc Espie.
#
@@ -32,6 +32,7 @@ use strict;
use File::Find;
use File::Temp qw/tempfile/;
use File::Compare;
+
use Getopt::Std;
my ($picky, $testmode);
@@ -493,10 +494,11 @@ if ($#ARGV == -1) {
}
for my $mandir (@ARGV) {
- unless (-d $mandir) {
- die "$0: $mandir: not a directory"
+ if (-d $mandir) {
+ build_index($mandir);
+ } else {
+ print STDERR "$0: $mandir is not a directory\n";
}
- build_index($mandir);
}