All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] [PATCH v2] coccicheck:support $COCCI being defined as a directory
@ 2019-10-24  6:04 ` zhongshiqi
  0 siblings, 0 replies; 25+ messages in thread
From: zhongshiqi @ 2019-10-24  6:04 UTC (permalink / raw)
  To: Julia.Lawall
  Cc: wang.yi59, michal.lkml, nicolas.palix, linux-kernel, xue.zhihong,
	cheng.shengyu, zhongshiqi, cocci

Put a modification in scripts/coccicheck which supports users in
configuring COCCI parameter as a directory to traverse files in
directory whose next level directory contains rule files with Suffix of
cocci.

Signed-off-by: zhongshiqi <zhong.shiqi@zte.com.cn>
---
Changes in v2:
        1.fix patch subject according to the reply by Markus
        <Markus.Elfring@web.de>
        2.change description in “imperative mood”

 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

_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

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

end of thread, other threads:[~2019-10-24 10:53 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24  6:04 [Cocci] [PATCH v2] coccicheck:support $COCCI being defined as a directory zhongshiqi
2019-10-24  6:04 ` zhongshiqi
2019-10-24  6:19 ` [Cocci] " Julia Lawall
2019-10-24  6:19   ` Julia Lawall
2019-10-24  7:55   ` [Cocci] [PATCH v2] coccicheck: support " Markus Elfring
2019-10-24  7:55     ` Markus Elfring
2019-10-24  7:55     ` Markus Elfring
2019-10-24  7:58     ` [Cocci] " Julia Lawall
2019-10-24  7:58       ` Julia Lawall
2019-10-24  7:58       ` Julia Lawall
2019-10-24  9:11       ` [Cocci] [v2] " Markus Elfring
2019-10-24  9:11         ` Markus Elfring
2019-10-24  9:11         ` Markus Elfring
2019-10-24  8:02   ` [Cocci] [PATCH v2] coccicheck:support $COCCI being defined as adirectory zhong.shiqi
2019-10-24  7:06 ` [Cocci] [PATCH v2] coccicheck: support $COCCI being defined as a directory Markus Elfring
2019-10-24  7:06   ` Markus Elfring
2019-10-24  7:06   ` Markus Elfring
2019-10-24  8:03   ` [Cocci] [PATCH v2] coccicheck: support $COCCI being defined as adirectory zhong.shiqi
2019-10-24  9:23     ` [Cocci] [v2] " Markus Elfring
2019-10-24  9:23       ` Markus Elfring
2019-10-24  9:23       ` Markus Elfring
2019-10-24  9:58       ` [Cocci] " zhong.shiqi
2019-10-24 10:52         ` [Cocci] [v2] coccicheck: support $COCCI being defined as a directory Markus Elfring
2019-10-24 10:52           ` Markus Elfring
2019-10-24 10:52           ` 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.