summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
commit8c12824c5ce383206aa9ff24ee1f8634783a5d80 (patch)
tree7f32ff1c8ae21efea446a0ed0e45b02eb9a28375 /v4l
parent5d9793798969b6929cf0f80edb77d8845b72f9ba (diff)
downloadmediapointer-dvb-s2-8c12824c5ce383206aa9ff24ee1f8634783a5d80.tar.gz
mediapointer-dvb-s2-8c12824c5ce383206aa9ff24ee1f8634783a5d80.tar.bz2
build: fix fix_kconfig.pl
From: Trent Piepho <xyzzy@speakeasy.org> It didn't work and would erase your config file. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l')
-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;
}