[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-
From: |
Ralf Wildenhues |
Subject: |
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-208-g2b85923 |
Date: |
Sun, 26 Oct 2008 17:59:05 +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 Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=2b85923e0b06f7f633b7f9f18bdec2b16ec5d958
The branch, master has been updated
via 2b85923e0b06f7f633b7f9f18bdec2b16ec5d958 (commit)
from fe385087e32ac8a30d15f14f4356424a89760daa (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 2b85923e0b06f7f633b7f9f18bdec2b16ec5d958
Author: Ralf Wildenhues <address@hidden>
Date: Sun Oct 26 18:50:17 2008 +0100
Minor file checking optimization: set_dir_cache_file.
* lib/Automake/FileUtils.pm (set_dir_cache_file): New function.
* automake.in (require_file_internal): Instead of resetting the
cache when a file has been installed, simply correct the cache
using set_dir_cache_file.
Signed-off-by: Ralf Wildenhues <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
automake.in | 2 +-
lib/Automake/FileUtils.pm | 17 ++++++++++++++++-
3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9b6a312..b173cd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-10-26 Ralf Wildenhues <address@hidden>
+ Minor file checking optimization: set_dir_cache_file.
+ * lib/Automake/FileUtils.pm (set_dir_cache_file): New function.
+ * automake.in (require_file_internal): Instead of resetting the
+ cache when a file has been installed, simply correct the cache
+ using set_dir_cache_file.
+
No uniquifying for fatal, prog_error, and verbose messages.
There is no point in dropping critical messages, even if they
are duplicates (unlikely to happen unless they have been sent
diff --git a/automake.in b/automake.in
index fea0906..fabeb48 100755
--- a/automake.in
+++ b/automake.in
@@ -7387,7 +7387,7 @@ sub require_file_internal ($$$@)
$suppress = 0;
$trailer = "\n error while copying";
}
- reset_dir_cache ($dir);
+ set_dir_cache_file ($dir, $file);
}
if (! maybe_push_required_file (dirname ($fullfile),
diff --git a/lib/Automake/FileUtils.pm b/lib/Automake/FileUtils.pm
index 2200be0..facde3f 100644
--- a/lib/Automake/FileUtils.pm
+++ b/lib/Automake/FileUtils.pm
@@ -47,7 +47,9 @@ use vars qw (@ISA @EXPORT);
@EXPORT = qw (&open_quote &contents
&find_file &mtime
&update_file &up_to_date_p
- &xsystem &xsystem_hint &xqx &dir_has_case_matching_file
&reset_dir_cache);
+ &xsystem &xsystem_hint &xqx
+ &dir_has_case_matching_file &reset_dir_cache
+ &set_dir_cache_file);
=item C<open_quote ($file_name)>
@@ -416,6 +418,19 @@ sub reset_dir_cache ($)
delete $_directory_cache{$_[0]};
}
+=item C<set_dir_cache_file ($dirname, $file_name)>
+
+State that C<$dirname> contains C<$file_name> now.
+
+=cut
+
+sub set_dir_cache_file ($$)
+{
+ my ($dirname, $file_name) = @_;
+ $_directory_cache{$dirname}{$file_name} = 1
+ if exists $_directory_cache{$dirname};
+}
+
1; # for require
### Setup "GNU" style for perl-mode and cperl-mode.
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-208-g2b85923,
Ralf Wildenhues <=