summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-ay
blob: 39c837b4ef0f162ad69013e9224eee7250a9756d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$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