bug-autoconf
[Top][All Lists]
Advanced

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

Re: havoc with ~/.autom4te.cfg


From: Akim Demaille
Subject: Re: havoc with ~/.autom4te.cfg
Date: 30 Oct 2002 10:00:54 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

>>>>> "Akim" == Akim Demaille <address@hidden> writes:

Tim> Wouldn't a simple --no-cache be just as good (or better, even)?
Tim> Specifying an empty string as a filename argument seems dodgy at
Tim> best (and somewhat counterintuitive; I can't immediately think of
Tim> any other tool that requires specifying an empty string to
Tim> disable an option).

Akim> You are right.  Please, send a patch :)

Installing this:

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * bin/autom4te.in (&parse_args, $help): Support --no-cache.
        * doc/autoconf.texi (autom4te Invocation): Adjust.
        Suggested by Tim van Holder.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.278
diff -u -u -r1.278 NEWS
--- NEWS 29 Oct 2002 08:09:05 -0000 1.278
+++ NEWS 30 Oct 2002 08:58:07 -0000
@@ -30,15 +30,17 @@
 
 - Supports -W/--warnings.
 
-** Obsolete options
+** autom4te
 
-  Support for the obsoleted options -m, --macrodir, -l, --localdir is
-  dropped in favor of the safer --include/--prepend-include scheme.
-
-** Customization
+- Supports --cache, and --no-cache.
 
 - ~/.autom4te.cfg makes it possible to disable the caching mechanism
   (autom4te.cache).  See `Customizing autom4te' in the documentation.
+
+** Obsolete options
+
+  Support for the obsoleted options -m, --macrodir, -l, --localdir is
+  dropped in favor of the safer --include/--prepend-include scheme.
 
 ** Macros
 
Index: bin/autom4te.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autom4te.in,v
retrieving revision 1.75
diff -u -u -r1.75 autom4te.in
--- bin/autom4te.in 25 Oct 2002 11:52:38 -0000 1.75
+++ bin/autom4te.in 30 Oct 2002 08:58:07 -0000
@@ -367,7 +367,8 @@
   -f, --force              don\'t rely on cached values
   -W, --warnings=CATEGORY  report the warnings falling in CATEGORY
   -l, --language=LANG      specify the set of M4 macros to use
-  -C, --cache=[DIRECTORY]  preserve results for future runs in DIRECTORY
+  -C, --cache=DIRECTORY    preserve results for future runs in DIRECTORY
+      --no-cache           disable the cache
   -m, --mode=OCTAL         change the non trace output file mode (0666)
   -M, --melt               don\'t use M4 frozen files
 
@@ -546,6 +547,7 @@
 
      # Caching.
      "C|cache=s" => \$cache,
+     "no-cache"  => sub { $cache = undef; },
     );
 
   error "too few arguments
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.706
diff -u -u -r1.706 autoconf.texi
--- doc/autoconf.texi 29 Oct 2002 20:22:54 -0000 1.706
+++ doc/autoconf.texi 30 Oct 2002 08:58:12 -0000
@@ -7525,13 +7525,15 @@
 @command{autom4te} considers it is trashed).
 
 @table @option
address@hidden address@hidden
address@hidden -C
address@hidden address@hidden
address@hidden address@hidden
address@hidden -C @var{directory}
 Specify the name of the directory where the result should be cached.
 Passing an empty value disables caching.  Be sure to pass a relative
 path name, as for the time being, global caches are not supported.
 
address@hidden --no-cache
+Don't cache the results.
+
 @item --force
 @itemx -f
 If a cache is used, consider it obsolete (but update it anyway).
@@ -7684,7 +7686,7 @@
 ## ------------------ ##
 
 begin-language: "Autoconf"
-args: --cache ''
+args: --no-cache
 end-language: "Autoconf"
 @end verbatim
 




reply via email to

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