From 39348b938ddadf3b765e25cf9418a9dddb00e377 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 11 Oct 2003 16:10:53 +0000 Subject: [PATCH] Only create manpages if a man dir is present --- buildpkg.packaging.irix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 724fd46..0ae01cb 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -283,8 +283,8 @@ generic_pack() # Verify if $1 is defined local arg1=${1-'x'} case $arg1 in - 'x') setdir $stagedir$topinstalldir/man - if [ $catman -eq 1 ]; then + 'x') if [ $catman -eq 1 -a -d $stagedir$topinstalldir/man ]; then + setdir $stagedir$topinstalldir/man fix_man fi setdir $stagedir$topinstalldir @@ -292,8 +292,8 @@ generic_pack() create_spec make_dist ;; - 'shortroot') setdir $stagedir/man - if [ $catman -eq 1 ]; then + 'shortroot') if [ $catman -eq 1 -a -d $stagedir/man ]; then + setdir $stagedir/man fix_man fi setdir stage