Fix FS#12272 - genlang changes broke some targets

New genlang code forgot to allow for the wildcard being the full target name
with a * appended.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30514 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Torne Wuff 2011-09-12 15:19:57 +00:00
parent f93530c4ba
commit 8a0db7bf34

View file

@ -130,7 +130,7 @@ if(!$target && !$update && !$sortfile) {
# state machine, so we don't bother to check. # state machine, so we don't bother to check.
my $target_regex = "(?:^|,) *(?:\\*"; my $target_regex = "(?:^|,) *(?:\\*";
foreach my $target_part (split ':', $target) { foreach my $target_part (split ':', $target) {
for (my $c=1; $c<length $target_part; $c++) { for (my $c=1; $c<=length $target_part; $c++) {
my $partial = substr $target_part, 0, $c; my $partial = substr $target_part, 0, $c;
$target_regex .= "|$partial\\*"; $target_regex .= "|$partial\\*";
} }