From f6a0443aa4c2c580d0e563278a1029b414aab0cf Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 14 Jan 2019 08:11:52 +0100 Subject: [PATCH] make: finish lint-exec excluding all arbitrary data --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3177f8eaf..ed79cacf5 100644 --- a/Makefile +++ b/Makefile @@ -301,10 +301,13 @@ lint-xml: @find ${.CURDIR}/src ${.CURDIR}/Scripts \ -name "*.xml*" -type f -print0 | xargs -0 -n1 xmllint --noout +SCRIPTDIRS!= find ${.CURDIR}/src/opnsense/scripts -type d -depth 1 + lint-exec: -.for DIR in ${.CURDIR}/src/etc/rc.d # XXX e.g. src/opnsense/scripts +.for DIR in ${.CURDIR}/src/etc/rc.d ${SCRIPTDIRS} .if exists(${DIR}) - @find ${DIR} -type f ! -name "*.xml" -print0 | \ + @find ${DIR} -path '**/htdocs_default' -prune -o -type f \ + ! -name "*.xml" ! -name "*.csv" ! -name "*.sql" -print0 | \ xargs -0 -t -n1 test -x || \ (echo "Missing executable permission in ${DIR}"; exit 1) .endif