Update of /cvsroot/module-build/Module-Build/lib/Module/Build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10900/lib/Module/Build
Modified Files:
Compat.pm
Log Message:
Warn when the subclass looks like it's outside the build directory
Index: Compat.pm
===================================================================
RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Compat.pm,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- Compat.pm 10 Sep 2005 03:53:29 -0000 1.66
+++ Compat.pm 20 Sep 2005 00:54:33 -0000 1.67
@@ -42,6 +42,11 @@
print {$fh} "# Note: this file was auto-generated by ", __PACKAGE__, " version $VERSION\n";
my $subclass_dir = $package->subclass_dir($build);
+ if (File::Spec->file_name_is_absolute($subclass_dir)) {
+ $build->log_warn("Warning: builder subclass " . ref($build) .
+ " was loaded with an absolute path, but should use a" .
+ " relative path for wide distribution");
+ }
if ($type eq 'small') {
printf {$fh} <<'EOF', $subclass_dir, ref($build), ref($build);
|