summaryrefslogtreecommitdiff
path: root/v4l/scripts/fix_kconfig.pl
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/fix_kconfig.pl')
-rwxr-xr-xv4l/scripts/fix_kconfig.pl10
1 files changed, 4 insertions, 6 deletions
diff --git a/v4l/scripts/fix_kconfig.pl b/v4l/scripts/fix_kconfig.pl
index 9a448cbc6..368a8faca 100755
--- a/v4l/scripts/fix_kconfig.pl
+++ b/v4l/scripts/fix_kconfig.pl
@@ -4,18 +4,16 @@ use strict;
my $need_changes = 0;
my $out;
-open IN,".config";
+open IN, '<.config';
while (<IN>) {
- if (s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/) {
- $need_changes=1;
- $out .= $_;
- }
+ s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/ and $need_changes=1;
+ $out .= $_;
}
close IN;
if ($need_changes) {
printf("There's a known bug with the building system with this kernel. Working around.\n");
- open OUT, ">.config";
+ open OUT, '>.config';
print OUT $out;
close OUT;
}