Take the first definition of a variable.
This commit is contained in:
parent
d0aeeee176
commit
7bbb8c5620
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user