]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Adapt to deeper hierarchy in gnulib.
authorJim Meyering <jim@meyering.net>
Sun, 8 Jul 2007 10:42:05 +0000 (12:42 +0200)
committerJim Meyering <jim@meyering.net>
Sun, 8 Jul 2007 10:42:05 +0000 (12:42 +0200)
* bootstrap (gnulib_tool): If the destination directory doesn't exist,
create it. This is required at least for "lib/uniwidth/cjk.h".

ChangeLog
bootstrap

index e2fdc5396f664cbb76c589f40d0926518e6c4bc8..13c6cf489d76e815aaf894fbab0bda0f85673f39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-07-08  Jim Meyering  <jim@meyering.net>
 
+       Adapt to deeper hierarchy in gnulib.
+       * bootstrap (gnulib_tool): If the destination directory doesn't exist,
+       create it. This is required at least for "lib/uniwidth/cjk.h".
+
        Use <wchar.h>, not "wcwidth.h".
        * src/wc.c: Now that gnulib provides the POSIX-specified <wchar.h>,
        include it and <wctype.h>, rather than "wcwidth.h".
index 16a308543431712d12e8a1b0ae95400a757cb78b..8382eb895fba93fd64534c5721576c1b2a9d046c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -284,6 +284,12 @@ symlink_to_gnulib()
   dst=${2-$1}
 
   test -f "$src" && {
+
+    # If the destination directory doesn't exist, create it.
+    # This is required at least for "lib/uniwidth/cjk.h".
+    dst_dir=`dirname "$dst"`
+    test -d "$dst_dir" || mkdir -p "$dst_dir"
+
     if $copy; then
       {
        test ! -h "$dst" || {