diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-07-07 13:58:38 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-07-07 13:58:38 +0000 |
commit | f8f68583aabe1033ab048108d55d6b51db70ec55 (patch) | |
tree | 949262ed76a884711e07ab0222a45a56f01ec0cd /v4l/scripts/buildpatch | |
parent | 26f1f9728e5e3fdea7f573b5b159089b3fea1a6d (diff) | |
download | mediapointer-dvb-s2-f8f68583aabe1033ab048108d55d6b51db70ec55.tar.gz mediapointer-dvb-s2-f8f68583aabe1033ab048108d55d6b51db70ec55.tar.bz2 |
scripts/buildpatch:
- Added code to eliminate #if 0 and #if 1 when submiting pathes
to new kernel.
Miscelaneous CodingStyle stuff.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/scripts/buildpatch')
-rw-r--r-- | v4l/scripts/buildpatch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch index 6cffe863a..fa9322fdf 100644 --- a/v4l/scripts/buildpatch +++ b/v4l/scripts/buildpatch @@ -62,6 +62,20 @@ sub filter_source ($$) { if ($line =~ m/^#include \"compat.h\"/) { next; } + if ($line =~ /^#if 0/) { + chomp($line); + $state = "if"; + $if = 0; + print OUT "/* BP #if $if ($line) */\n" if $DEBUG; + next; + } + if ($line =~ /^#if 1/) { + chomp($line); + $state = "if"; + $if = 1; + print OUT "/* BP #if $if ($line) */\n" if $DEBUG; + next; + } if ($line =~ /^#if.*BTTV_VERSION_CODE/) { chomp($line); $state = "if"; |