From: Akim Demaille Date: Sun, 23 Sep 2001 17:16:57 +0000 (+0000) Subject: * doc/autoconf.texi (Common Shell Constructs): Rename as... X-Git-Tag: AUTOCONF-2.52f~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b982ac3cfc73a123b3e26c2c487c52d78e2d0e;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Common Shell Constructs): Rename as... (Programming in M4sh): this. Promote to @section. --- diff --git a/ChangeLog b/ChangeLog index 463501544..37cbca32d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-09-23 Akim Demaille + + * doc/autoconf.texi (Common Shell Constructs): Rename as... + (Programming in M4sh): this. + Promote to @section. + + 2001-09-23 Akim Demaille * lib/autotest/general.m4 (AT_INIT): Dump config.log last. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 2e1a3f751..d2632173a 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -307,6 +307,7 @@ Programming in M4 * M4 Quotation:: Protecting macros from unwanted expansion * Programming in M4sugar:: Convenient pure M4 macros +* Programming in M4sh:: Common Shell Constructs M4 Quotation @@ -320,7 +321,6 @@ Programming in M4sugar * Redefined M4 Macros:: M4 builtins changed in M4sugar * Forbidden Patterns:: Catching unexpanded macros -* Common Shell Constructs:: Working around shell portability problems Writing Autoconf Macros @@ -430,6 +430,17 @@ Copying This Manual * GNU Free Documentation License:: License for copying this manual +Indices + +* Environment Variable Index:: Index of environment variables used +* Output Variable Index:: Index of variables set in output files +* Preprocessor Symbol Index:: Index of C preprocessor symbols defined +* Autoconf Macro Index:: Index of Autoconf macros +* M4 Macro Index:: Index of M4, M4sugar, and M4sh macros +* Autotest Macro Index:: Index of Autotest macros +* Program & Function Index:: Index of those with portability problems +* Concept Index:: General index + @end detailmenu @end menu @@ -6230,6 +6241,7 @@ and their interface might change in the future. As a matter of fact, @menu * M4 Quotation:: Protecting macros from unwanted expansion * Programming in M4sugar:: Convenient pure M4 macros +* Programming in M4sh:: Common Shell Constructs @end menu @node M4 Quotation @@ -6689,8 +6701,6 @@ M4sugar''. @menu * Redefined M4 Macros:: M4 builtins changed in M4sugar * Forbidden Patterns:: Catching unexpanded macros -* Common Shell Constructs:: Working around shell portability problems - @end menu @node Redefined M4 Macros @@ -6794,10 +6804,13 @@ Any token matching @var{pattern} is allowed, including if it matches an @code{m4_pattern_forbid} pattern. @end defmac -@node Common Shell Constructs -@subsection Common Shell Constructs +@node Programming in M4sh +@section Programming in M4sh + +@c FIXME: Eventually will become a chapter, as it is not related to +@c programming in M4 per se. -M4sugar provides portable alternatives for some common shell constructs +M4sh provides portable alternatives for some common shell constructs that unfortunately are not portable in practice. @defmac AS_DIRNAME (@var{pathname}) @@ -8823,10 +8836,10 @@ Some implementations, such as Tru64's, fail when comparing to @c -------------------- @prindex @command{dirname} Not all hosts have a working @command{dirname}, and you should instead -use @code{AS_DIRNAME} (@pxref{Common Shell Constructs}). For example. +use @code{AS_DIRNAME} (@pxref{Programming in M4sh}). For example: @example -dir=`dirname "$file"` # This is not portable. +dir=`dirname "$file"` # This is not portable. dir=`AS_DIRNAME(["$file"])` # This is more portable. @end example