From 8c12824c5ce383206aa9ff24ee1f8634783a5d80 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Tue, 3 Mar 2009 20:21:02 -0800 Subject: build: fix fix_kconfig.pl From: Trent Piepho It didn't work and would erase your config file. Priority: normal Signed-off-by: Trent Piepho --- v4l/scripts/fix_kconfig.pl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'v4l') 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 () { - 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; } -- cgit v1.2.3