scripts: handle non-C files in minimal_includes.pl
authorAndrew Tridgell <tridge@samba.org>
Mon, 12 Oct 2009 02:31:34 +0000 (13:31 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 12 Oct 2009 02:31:34 +0000 (13:31 +1100)
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";