summaryrefslogtreecommitdiff
path: root/v4l/scripts/fix_kconfig.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-04 14:35:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-04 14:35:16 -0300
commite83e43ec4c4f80760289f0929e40bcffc7a0aeea (patch)
treeab9f221287e70ac4af16a71b813c65970cd049f9 /v4l/scripts/fix_kconfig.pl
parent9ef7370d6ed40cac0780e41efd8a9b81e79219f8 (diff)
parent0b0807ef7ebec0bda5074e9bb79aba86486ea728 (diff)
downloadmediapointer-dvb-s2-e83e43ec4c4f80760289f0929e40bcffc7a0aeea.tar.gz
mediapointer-dvb-s2-e83e43ec4c4f80760289f0929e40bcffc7a0aeea.tar.bz2
merge: http://linuxtv.org/hg/~tap/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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;
}