From: Ben Gras Date: Tue, 4 Apr 2006 16:15:00 +0000 (+0000) Subject: Only update manpages if dir exists X-Git-Tag: v3.1.2a~49 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-verify.html?a=commitdiff_plain;h=0787908d1b495293bc1d1018d88044617977d3a7;p=minix.git Only update manpages if dir exists --- diff --git a/commands/scripts/packit.sh b/commands/scripts/packit.sh index 3d52c94a1..9c27d8f0a 100644 --- a/commands/scripts/packit.sh +++ b/commands/scripts/packit.sh @@ -45,7 +45,8 @@ then rm -f $PI fi -makewhatis /usr/man -makewhatis /usr/local/man -makewhatis /usr/gnu/man -makewhatis /usr/X11R6/man +for d in /usr/man /usr/local/man /usr/gnu/man /usr/X11R6/man +do if [ -d "$d" ] + then makewhatis $d + fi +done