From 2b9818ce0fe5ab4b27972b154981cf60ff3acc78 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Oct 2009 13:31:34 +1100 Subject: scripts: handle non-C files in minimal_includes.pl --- source4/script/minimal_includes.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/script/minimal_includes.pl b/source4/script/minimal_includes.pl index 2bcbd1152a..d64409ed13 100755 --- a/source4/script/minimal_includes.pl +++ b/source4/script/minimal_includes.pl @@ -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"; -- cgit