diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 20:21:02 -0800 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 20:21:02 -0800 |
commit | 8c12824c5ce383206aa9ff24ee1f8634783a5d80 (patch) | |
tree | 7f32ff1c8ae21efea446a0ed0e45b02eb9a28375 /v4l | |
parent | 5d9793798969b6929cf0f80edb77d8845b72f9ba (diff) | |
download | mediapointer-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-x | v4l/scripts/fix_kconfig.pl | 10 |
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; } |