stas 2002/11/28 21:36:56
Modified: lib/Apache Reload.pm
. Changes
Log:
Apache::Reload: add support for watching and reloading modules only in
specified sub-dirs
Submitted by: Harry Danilevsky <[EMAIL PROTECTED]>
Reviewed by: stas
Revision Changes Path
1.5 +3 -0 modperl-2.0/lib/Apache/Reload.pm
Index: Reload.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Reload.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Reload.pm 14 May 2002 10:40:10 -0000 1.4
+++ Reload.pm 29 Nov 2002 05:36:56 -0000 1.5
@@ -101,7 +101,10 @@
}
}
+ my $ReloadDirs = ref($r) && $r->dir_config("ReloadDirectories");
+ my @watch_dirs = split(/\s+/, $ReloadDirs||'');
while (my($key, $file) = each %Apache::Reload::INCS) {
+ next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
warn "Apache::Reload: Checking mtime of $key\n" if $DEBUG;
my $mtime = (stat $file)[9];
1.67 +3 -0 modperl-2.0/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/modperl-2.0/Changes,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- Changes 28 Nov 2002 08:43:33 -0000 1.66
+++ Changes 29 Nov 2002 05:36:56 -0000 1.67
@@ -10,6 +10,9 @@
=item 1.99_08-dev
+Apache::Reload: add support for watching and reloading modules only in
+specified sub-dirs [Harry Danilevsky <[EMAIL PROTECTED]>]
+
enable APR.pm's linking for apr 0.9.2 and higher, which uses a new lib
naming scheme, such as libapr-0.so.0.9.2, only if apr-config and
apu-config scripts exist. [Stas Bekman]