autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-32-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-32-g523ee0e
Date: Fri, 10 Oct 2008 14:45:22 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=523ee0e116b772dfc7293212e2481db10042babe

The branch, master has been updated
       via  523ee0e116b772dfc7293212e2481db10042babe (commit)
      from  edd65fb24d05da02cb6c54c262b39131376efe4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 523ee0e116b772dfc7293212e2481db10042babe
Author: Eric Blake <address@hidden>
Date:   Fri Oct 10 08:40:09 2008 -0600

    Fix _AS_MKDIR_P usage.
    
    * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
    match implementation.
    (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
    * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
    wording to better match behavior.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |   10 ++++++++++
 doc/autoconf.texi   |    5 +++--
 lib/m4sugar/m4sh.m4 |   12 +++++++-----
 3 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2ead8c6..2ab0394 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,16 @@
+2008-10-10  Eric Blake  <address@hidden>
+
+       Fix _AS_MKDIR_P usage.
+       * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
+       match implementation.
+       (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
+       * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
+       wording to better match behavior.
+
 2008-10-10  Paolo Bonzini  <address@hidden>
 
        * doc/autoconf.texi: Be less wary of shell functions.
+       * NEWS: Document the increased use of shell functions.
 
 2008-10-10  Paolo Bonzini  <address@hidden>
 
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 2ea542c..e1afada 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -11872,9 +11872,10 @@ script.  Finally, it changes the current diversion to 
@code{BODY}.
 @defmac AS_MKDIR_P (@var{file-name})
 @asindex{MKDIR_P}
 Make the directory @var{file-name}, including intervening directories
-as necessary.  This is equivalent to @samp{mkdir -p @var{file-name}},
+as necessary.  This is equivalent to @samp{mkdir -p -- @var{file-name}},
 except that it is portable to older versions of @command{mkdir} that
-lack support for the @option{-p} option.  Also, @code{AS_MKDIR_P}
+lack support for the @option{-p} option or for the @option{--}
+delimiter.  Also, @code{AS_MKDIR_P}
 succeeds if @var{file-name} is a symbolic link to an existing directory,
 even though Posix is unclear whether @samp{mkdir -p} should
 succeed in that case.  If creation of @var{file-name} fails, exit the
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index c0a1e30..369d27a 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -257,7 +257,7 @@ fi
 # important not to forget some: config.status needs them.
 m4_defun([_AS_PREPARE],
 [as_func_mkdir_p() {
-  _AS_MKDIR_P([$[]1])
+  _AS_MKDIR_P
 }
 
 _AS_EXPR_PREPARE
@@ -1033,9 +1033,11 @@ $as_ln_s $1 $2
 ])
 
 
-# _AS_MKDIR_P(DIR)
-# ----------------
-# Emulate `mkdir -p` with plain `mkdir'.
+# _AS_MKDIR_P
+# -----------
+# Emit code that can be used to emulate `mkdir -p` with plain `mkdir';
+# the code assumes that "$as_dir" contains the directory to create.
+# $as_dir is normalized, so there is no need to worry about using --.
 m4_define([_AS_MKDIR_P],
 [case $as_dir in #(
   -*) as_dir=./$as_dir;;
@@ -1067,7 +1069,7 @@ as_dir=$1; as_func_mkdir_p])# AS_MKDIR_P
 # -------------------
 m4_defun([_AS_MKDIR_P_PREPARE],
 [AS_REQUIRE_SHELL_FN([as_func_mkdir_p], [
-  _AS_MKDIR_P([$[]1])
+  _AS_MKDIR_P
 ])
 if mkdir -p . 2>/dev/null; then
   as_mkdir_p='mkdir -p "$as_dir"'


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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