]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autom4te.in (&parse_args, $help): Support --no-cache.
authorAkim Demaille <akim@epita.fr>
Wed, 30 Oct 2002 09:00:23 +0000 (09:00 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 30 Oct 2002 09:00:23 +0000 (09:00 +0000)
* doc/autoconf.texi (autom4te Invocation): Adjust.
Suggested by Tim van Holder.

ChangeLog
NEWS
bin/autom4te.in
doc/autoconf.texi
man/autom4te.1

index ae09426965c176802b73d36b79cb9f278e46c7bf..d6fc35e18ca579c5892c9b532f2c8331920fa9aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-10-30  Akim Demaille  <akim@epita.fr>
+
+       * bin/autom4te.in (&parse_args, $help): Support --no-cache.
+       * doc/autoconf.texi (autom4te Invocation): Adjust.
+       Suggested by Tim van Holder.
+
 2002-10-29  Paul Eggert  <eggert@twinsun.com>
 
        * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
diff --git a/NEWS b/NEWS
index c23e93c33c7e8c5f7f71c9c19e6c20c3eb732266..3f11f403284ded07a2f33da09a7a965e9ae37b8c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,16 +30,18 @@ Release tips:
 
 - 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
 
 - New macros
index 18b2cc0c34319f8922345e54f7c67ad9bff43007..c8639bf7d6abdb570624a0392d74ba7014c89aae 100644 (file)
@@ -367,7 +367,8 @@ Operation modes:
   -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 @@ sub parse_args ()
 
      # Caching.
      "C|cache=s" => \$cache,
+     "no-cache"  => sub { $cache = undef; },
     );
 
   error "too few arguments
index 7d5745f9dc1fdacb2209a7525f0ef7c26a7215ea..8d970dd41bb66be8618229dac8681277337a9cdc 100644 (file)
@@ -7525,13 +7525,15 @@ be removed} at any moment (especially if for some reason
 @command{autom4te} considers it is trashed).
 
 @table @option
-@item --cache=[@var{directory}]
-@itemx -C
-@itemx -C@var{directory}
+@item --cache=@var{directory}
+@itemx -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.
 
+@item --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 @@ globally, include the following lines in @file{~/.autom4te.cfg}:
 ## ------------------ ##
 
 begin-language: "Autoconf"
-args: --cache ''
+args: --no-cache
 end-language: "Autoconf"
 @end verbatim
 
index 85089b896d4fb6d36d32123830a7cf5f5c35e4ca..427bd7fefcfb5c1e8aca9c0d23075f3d075d91bd 100644 (file)
@@ -43,9 +43,12 @@ report the warnings falling in CATEGORY
 \fB\-l\fR, \fB\-\-language\fR=\fILANG\fR
 specify the set of M4 macros to use
 .TP
-\fB\-C\fR, \fB\-\-cache\fR=\fI[DIRECTORY]\fR
+\fB\-C\fR, \fB\-\-cache\fR=\fIDIRECTORY\fR
 preserve results for future runs in DIRECTORY
 .TP
+\fB\-\-no\-cache\fR
+disable the cache
+.TP
 \fB\-m\fR, \fB\-\-mode\fR=\fIOCTAL\fR
 change the non trace output file mode (0666)
 .TP