]> git.saurik.com Git - bison.git/blobdiff - bootstrap
* bootstrap (slurp): Create target directories that don't exist.
[bison.git] / bootstrap
index 3294085057373b9d8a1146f48de8e39208b42286..b1020421beeeb012ba28314017bd979c314c5ebc 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -395,7 +395,12 @@ slurp() {
     copied=
     sep=
     for file in `ls $1/$dir`; do
-      test -d $1/$dir/$file && continue
+      if test -d $1/$dir/$file; then
+        if test ! -d $dir/$file; then
+          echo "$0: mkdir $dir/$file" && mkdir $dir/$file || exit
+        fi
+        continue
+      fi
       for excluded_file in $excluded_files; do
        test "$dir/$file" = "$excluded_file" && continue 2
       done