[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Autoconf source repository branch, master, updated. v2.65-48-g
From: |
Eric Blake |
Subject: |
[SCM] GNU Autoconf source repository branch, master, updated. v2.65-48-gd174a53 |
Date: |
Tue, 02 Mar 2010 22:51:37 +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=d174a5362e1adc52d9ef0e9448b2ad142512e42f
The branch, master has been updated
via d174a5362e1adc52d9ef0e9448b2ad142512e42f (commit)
from 026070fea8195a0d7658931b8d085409323c93d7 (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 d174a5362e1adc52d9ef0e9448b2ad142512e42f
Author: Eric Blake <address@hidden>
Date: Tue Mar 2 15:39:58 2010 -0700
Fix shell code in AS_TR_SH documentation.
* doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
example to expand to valid shell code.
Reported by Ralf Wildenhues.
Signed-off-by: Eric Blake <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
doc/autoconf.texi | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 747a629..5aae86c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-03-02 Eric Blake <address@hidden>
+ Fix shell code in AS_TR_SH documentation.
+ * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
+ example to expand to valid shell code.
+ Reported by Ralf Wildenhues.
+
Improve documentation on AC_{COMPILE,LINK}_IFELSE.
* doc/autoconf.texi (Running the Compiler): Mention that the
object file is available after a successful compile.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 7838f76..8fca9ae 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13206,12 +13206,15 @@ echo "[#]define AS_TR_CPP([HAVE_$type]) 1"
@defmac AS_TR_SH (@var{expression})
@asindex{TR_SH}
-Transform @var{expression} into a valid shell variable name. For example:
+Transform @var{expression} into shell code that generates a valid shell
+variable name. The result is literal when possible at m4 time, but must
+be used with @code{eval} if @var{expression} causes shell indirections.
+For example:
@example
# This outputs "Have it!".
header="sys/some file.h"
-AS_TR_SH([HAVE_$header])=yes
+eval AS_TR_SH([HAVE_$header])=yes
if test "x$HAVE_sys_some_file_h" = xyes; then echo "Have it!"; fi
@end example
@end defmac
hooks/post-receive
--
GNU Autoconf source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Autoconf source repository branch, master, updated. v2.65-48-gd174a53,
Eric Blake <=