Take the first definition of a variable.

This commit is contained in:
Ben Laurie 2013-03-03 02:56:45 +00:00
parent d0aeeee176
commit 7bbb8c5620

View File

@ -69,7 +69,7 @@ open(IN,"<Makefile") || die "unable to open Makefile!\n";
while(<IN>) {
my ($mf_opt, $mf_ref);
while (($mf_opt, $mf_ref) = each %mf_import) {
if (/^$mf_opt\s*=\s*(.*)$/) {
if (/^$mf_opt\s*=\s*(.*)$/ && !defined($$mfref)) {
$$mf_ref = $1;
}
}