bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.


From: Jim Meyering
Subject: Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
Date: Mon, 05 Nov 2007 18:08:37 +0100

FYI,

2007-11-05  Jim Meyering  <address@hidden>

        Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
        * bootstrap (cp_mark_as_generated): Create any required parent
        destination directories before copying a file into place.

diff --git a/bootstrap b/bootstrap
index 0e2bd34..110c77a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -366,6 +366,11 @@ cp_mark_as_generated()
       *)                  c1=     ; c2=     ;;
     esac

+    # If the destination directory doesn't exist, create it.
+    # This is required at least for "lib/uniwidth/cjk.h".
+    dst_dir=`dirname "$cp_dst"`
+    test -d "$dst_dir" || mkdir -p "$dst_dir"
+
     if test -z "$c1"; then
       cmp -s "$cp_src" "$cp_dst" || {
        echo "$0: cp -f $cp_src $cp_dst" &&
--
1.5.3.5.561.g140d




reply via email to

[Prev in Thread] Current Thread [Next in Thread]