scripts: handle non-C files in minimal_includes.pl
[ira/wip.git] / source4 / script / minimal_includes.pl
index 2bcbd1152a2c07166e98af901756198028614128..d64409ed13de478b7957e6fcbc69f38bfe058c6e 100755 (executable)
@@ -43,7 +43,7 @@ sub test_compile($)
 {
        my $fname = shift;
        my $obj;
-       if ($fname =~ s/(.*)\.c$/$1.o/) {
+       if ($fname =~ s/(.*)\..*$/$1.o/) {
                $obj = "$1.o";
        } else {
                return "NOT A C FILE";