All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Configuring COCCI parameter as a directory is supportted
@ 2019-10-23  8:32 ` zhongshiqi
  0 siblings, 0 replies; 11+ messages in thread
From: zhongshiqi @ 2019-10-23  8:32 UTC (permalink / raw)
  To: Julia.Lawall
  Cc: Gilles.Muller, nicolas.palix, michal.lkml, cocci, linux-kernel,
	xue.zhihong, wang.yi59, cheng.shengyu, zhongshiqi

This patch puts a modification in scripts/coccicheck which supports users
in configuring COCCI parameter as a directory to traverse files in
directory. 

Signed-off-by: zhongshiqi <zhong.shiqi@zte.com.cn>
---
 scripts/coccicheck | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index e04d328..a1c4197 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -257,6 +257,10 @@ if [ "$COCCI" = "" ] ; then
     for f in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do
 	coccinelle $f
     done
+elif [ -d "$COCCI" ] ; then
+    for f in `find $COCCI/ -name '*.cocci' -type f | sort`; do
+	coccinelle $f
+    done
 else
     coccinelle $COCCI
 fi
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-10-23 14:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23  8:32 [PATCH] Configuring COCCI parameter as a directory is supportted zhongshiqi
2019-10-23  8:32 ` [Cocci] " zhongshiqi
2019-10-23  8:55 ` Julia Lawall
2019-10-23  8:55   ` [Cocci] " Julia Lawall
2019-10-23  9:40   ` [Cocci] [PATCH] Configuring COCCI parameter as a directory issupportted zhong.shiqi
2019-10-23 14:08   ` [PATCH] coccicheck: Configuring COCCI parameter for supporting a directory search Markus Elfring
2019-10-23 14:08     ` [Cocci] " Markus Elfring
2019-10-23 14:08     ` Markus Elfring
2019-10-23 13:20 ` Markus Elfring
2019-10-23 13:20   ` [Cocci] " Markus Elfring
2019-10-23 13:20   ` Markus Elfring

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.