[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1571966374-42566-1-git-send-email-zhong.shiqi@zte.com.cn>
Date: Fri, 25 Oct 2019 09:19:34 +0800
From: zhongshiqi <zhong.shiqi@....com.cn>
To: Julia.Lawall@...6.fr
Cc: Gilles.Muller@...6.fr, nicolas.palix@...g.fr,
michal.lkml@...kovi.net, cocci@...teme.lip6.fr,
linux-kernel@...r.kernel.org, xue.zhihong@....com.cn,
wang.yi59@....com.cn, cheng.shengyu@....com.cn,
zhongshiqi <zhong.shiqi@....com.cn>
Subject: [PATCH v3] coccicheck: Support search for SmPL scripts within selected directory hierarchy
Allow defining COCCI as a directory to search SmPL scripts. Start a
corresponding file determination if the environment variable “COCCI”
contains an acceptable path.
Signed-off-by: zhongshiqi <zhong.shiqi@....com.cn>
---
Changes in v3:
1:rewrite change description
2:fix patch subject
3:modify commit log
Changes in v2:
1.fix patch subject according to the reply by Markus
<Markus.Elfring@....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
Powered by blists - more mailing lists