busybox: fix handling of special characters in path when converting menuconfig

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48077
lede-17.01
Felix Fietkau 2016-01-03 11:36:38 +00:00
parent 67877462a2
commit 182dd0db16
1 changed files with 4 additions and 3 deletions

View File

@ -16,9 +16,10 @@ open FIND, "find \"$PATH\" -name Config.in |";
while (<FIND>) {
chomp;
my $input = $_;
s/^$PATH\///g;
s/sysdeps\/linux\///g;
my $output = $_;
my $output = $input;
my $replace = quotemeta($PATH);
$output =~ s/^$replace\///g;
$output =~ s/sysdeps\/linux\///g;
print STDERR "$input => $output\n";
$output =~ /^(.+)\/[^\/]+$/ and system("mkdir -p $1");