$NetBSD: patch-ay,v 1.2 2007/02/11 18:39:04 tron Exp $ --- script/installswat.sh.orig 2007-02-04 18:59:25.000000000 +0000 +++ script/installswat.sh 2007-02-11 17:31:13.000000000 +0000 @@ -136,7 +136,7 @@ INSTALLDIR="$DESTDIR/$SWATDIR/help/`echo $dir | sed 's/htmldocs\///g'`" if test ! -d "$INSTALLDIR" -a "$mode" = 'install'; then - mkdir "$INSTALLDIR" + mkdir -p "$INSTALLDIR" if test ! -d "$INSTALLDIR"; then echo "Failed to make directory $INSTALLDIR, does $USER have privileges? " exit 1 @@ -164,7 +164,7 @@ if test -d "$SRCDIR../docs/$dir/images/"; then if test ! -d "$INSTALLDIR/images/" -a "$mode" = 'install'; then - mkdir "$INSTALLDIR/images" + mkdir -p "$INSTALLDIR/images" if test ! -d "$INSTALLDIR/images/"; then echo "Failed to make directory $INSTALLDIR/images, does $USER have privileges? " exit 1 @@ -200,7 +200,7 @@ for d in $BOOKDIR $BOOKDIR/figs ; do if test ! -d "$d" -a "$mode" = 'install'; then - mkdir $d + mkdir -p $d if test ! -d "$d"; then echo "Failed to make directory $d, does $USER have privileges? " exit 1