Jim Meyering <[EMAIL PROTECTED]> writes:

> I had to make some changes in order to get coreutils'
> bootstrap procedure to succeed once again:

That didn't quite work for me:

   $ ./bootstrap --gnulib-srcdir=../gnulib
   ./bootstrap: Bootstrapping from checked-out coreutils sources...
   ...
   ./bootstrap: ln -fs ../../gnulib/lib/yesno.c lib/yesno.c
   ./bootstrap: ln -fs ../../gnulib/lib/yesno.h lib/yesno.h
   ./bootstrap: cp -f ._bootmp/lib/uniwidth/.gitignore lib/uniwidth/.gitignore
   ./bootstrap: line 354: lib/uniwidth/.gitignore: No such file or directory

The following patch worked around the problem, though I admit I didn't
try to understand the changes you made.

* bootstrap (slurp): Make sure destination directory exists.
diff --git a/bootstrap b/bootstrap
index 442309c..4ca95e1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -396,6 +396,7 @@ slurp() {
       for excluded_file in $excluded_files; do
        test "$dir/$file" = "$excluded_file" && continue 2
       done
+      test -d $dir || mkdir -p $dir || exit
       if test $file = Makefile.am; then
         copied=$copied${sep}$gnulib_mk; sep=$nl
        remove_intl='/^[^#].*\/intl/s/^/#/;'"s!$bt_regex/!!g"
M ChangeLog
M bootstrap
Committed as 651a1d12aab2659a8b5b82172f7c8e0ab5ba96b2


Reply via email to