(register_language): Replace 'grep' with 'foreach' modifier.
+2003-08-02 Raja R Harinath <harinath@acm.org>
+
+ * automake.in (handle_source_transform): Replace 'grep' with 'map'.
+ (register_language): Replace 'grep' with 'foreach' modifier.
+
2003-08-01 Raja R Harinath <harinath@acm.org>
* lib/Automake/Variables.pm (variables): Return a list of
}
else
{
- grep ($_ = '$(' . $_ . $one_file . '_OBJECTS)', @keys);
+ @keys = map { '$(' . $_ . $one_file . '_OBJECTS)' } @keys;
define_pretty_variable ($one_file . '_OBJECTS', TRUE, $where, @keys);
}
my $lang = new Language (%option);
# Fill indexes.
- grep ($extension_map{$_} = $lang->name, @{$lang->extensions});
+ $extension_map{$_} = $lang->name foreach @{$lang->extensions};
$languages{$lang->name} = $lang;
# Update the pattern of known extensions.