Commits

Toby Inkster committed 9b960ab

better classification of code into build/runtime/test/xt

Comments (0)

Files changed (1)

lib/P5U/Command/Deps.pm

 	for my $_ (@files)
 	{
 		my $R
-			= /.PL$/        ? $BUILD
-			: /\bxt\b.+\.t/ ? $XTEST
-			: /\.t/         ? $TEST
-			:                 $RUNTIME;
+			= m{\.PL$}             ? $BUILD
+			: m{(^|[/\\])xt[/\\]}  ? $XTEST
+			: m{(^|[/\\])t[/\\]}   ? $TEST
+			: m{\.t$}              ? $TEST
+			:                        $RUNTIME;
 		$R->add_requirements( $scan->scan_file("$_") );
 	}