From: Luis R. Rodriguez Date: Wed, 29 Jun 2016 22:14:51 +0000 (-0700) Subject: coccicheck: move spatch binary check up X-Git-Tag: v4.8-rc1~58^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13d948653372987388a09c259758abd44ed6e7f2;p=platform%2Fkernel%2Flinux-exynos.git coccicheck: move spatch binary check up This has no functional changes. This is being done to enable us to later use spatch binary for some flag checking for certain features early on. Signed-off-by: Luis R. Rodriguez Acked-by: Nicolas Palix Signed-off-by: Michal Marek --- diff --git a/scripts/coccicheck b/scripts/coccicheck index f662786..f137b04 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -7,6 +7,11 @@ SPATCH="`which ${SPATCH:=spatch}`" +if [ ! -x "$SPATCH" ]; then + echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/' + exit 1 +fi + trap kill_running SIGTERM SIGINT declare -a SPATCH_PID @@ -51,11 +56,6 @@ if [ "$KBUILD_EXTMOD" != "" ] ; then OPTIONS="--patch $srctree $OPTIONS" fi -if [ ! -x "$SPATCH" ]; then - echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/' - exit 1 -fi - if [ "$MODE" = "" ] ; then if [ "$ONLINE" = "0" ] ; then echo 'You have not explicitly specified the mode to use. Using default "report" mode.'