--- script/installswat.sh.orig	Thu Jan 31 16:56:23 2002
+++ script/installswat.sh	Wed Feb 20 15:36:18 2002
@@ -10,7 +10,7 @@
 
 for d in $SWATDIR $SWATDIR/help $SWATDIR/images $SWATDIR/include; do
     if [ ! -d $d ]; then
-	mkdir $d
+	mkdir -p $d
 	if [ ! -d $d ]; then
 	    echo Failed to make directory $d, does $USER have privileges?
 	    exit 1
@@ -69,7 +69,7 @@
 
     for d in $BOOKDIR $BOOKDIR/figs $BOOKDIR/gifs; do
         if [ ! -d $d ]; then
-            mkdir $d
+            mkdir -p $d
             if [ ! -d $d ]; then
                 echo Failed to make directory $d, does $USER have privileges?
                 exit 1
