dougm 00/04/15 17:50:05
Modified: . Makefile.PL
Log:
compile most recently modifified files first
Revision Changes Path
1.7 +3 -1 modperl-2.0/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile.PL 2000/04/16 00:28:39 1.6
+++ Makefile.PL 2000/04/16 00:50:04 1.7
@@ -68,7 +68,9 @@
my $flags = "-g -Wall";
$flags .= " -E" if $opts->{E};
- for ($single_file ? $single_file : $code->c_files) {
+ my @c_files = $single_file ? $single_file : $code->c_files;
+
+ for (sort { (stat $b)[9] <=> (stat $a)[9] } @c_files) {
echo_cmd "$cc $flags $ccopts @inc -c $_";
return if $single_file;
}