All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] v4l/scripts: Fix make checkpatch operation with in tree checkpatch.pl
@ 2009-11-09  1:44 Andy Walls
  0 siblings, 0 replies; only message in thread
From: Andy Walls @ 2009-11-09  1:44 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media

Mauro,

make checkpatch wasn't working for me.

I found that the new version of checkpatch.pl that's in the v4l/dvb tree
doesn't emit a version number unless explicitly requested.

This patch gets 'make checkpatch' working (and complaining again) for
me.

Regards,
Andy

Signed-off-by: Andy Walls <awalls@radix.net>



diff -r d2aaff136907 v4l/scripts/check.pl
--- a/v4l/scripts/check.pl	Thu Nov 05 19:51:24 2009 -0500
+++ b/v4l/scripts/check.pl	Sun Nov 08 20:40:06 2009 -0500
@@ -56,11 +56,13 @@
 }
 close IN;
 
-my $intree_checkpatch = "scripts/checkpatch.pl --no-tree --strict";
+my $intree_checkpatch = "scripts/checkpatch.pl --version ";
 if (!open IN,"$intree_checkpatch|") {
 	$intree_checkpatch = "v4l/".$intree_checkpatch;
 	open IN,"$intree_checkpatch|";
 }
+$intree_checkpatch =~ s/--version/--no-tree --strict/;
+
 while (<IN>) {
 	tr/A-Z/a-z/;
 	if (m/version\s*:\s*([\d\.]+)/) {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-09  1:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09  1:44 [PATCH] v4l/scripts: Fix make checkpatch operation with in tree checkpatch.pl Andy Walls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.