* bin/autom4te.in: With --force, always refresh the output

file.
This commit is contained in:
Stepan Kasal 2006-10-24 15:57:57 +00:00
parent bc2af5fe6a
commit 1a02d1057d
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-10-24 Stepan Kasal <kasal@ucw.cz>
* bin/autom4te.in: With --force, always refresh the output
file.
2006-10-24 Stepan Kasal <kasal@ucw.cz>
* bin/autoconf.as: Fix the verbose message at the end.

View File

@ -987,7 +987,7 @@ $req->valid (0)
# We now know whether we can trust the Request object. Say it.
verb "the trace request object is:\n" . $req->marshall;
# We need to run M4 if (i) the users wants it (--force), (ii) $REQ is
# We need to run M4 if (i) the user wants it (--force), (ii) $REQ is
# invalid.
handle_m4 ($req, keys %{$req->macro})
if $force || ! $req->valid;
@ -1026,10 +1026,10 @@ if (%trace)
}
else
{
# Actual M4 expansion, only if $output is too old. STDOUT is
# pretty old.
# Actual M4 expansion, if the user wants it, or if $output is old
# (STDOUT is pretty old).
handle_output ($req, $output)
if mtime ($output) < mtime ($ocache . $req->id);
if $force || mtime ($output) < mtime ($ocache . $req->id);
}
# If we ran up to here, the cache is valid.