aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpackage/utils/busybox/convert_menuconfig.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl
index fd99349b65..7342fbd8a1 100755
--- a/package/utils/busybox/convert_menuconfig.pl
+++ b/package/utils/busybox/convert_menuconfig.pl
@@ -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");