Framework: also check src/etc/rc.d, don't error on missing

This commit is contained in:
Franco Fichtner 2019-01-02 11:38:47 +01:00
parent ef79eb0b87
commit a3591cbc23

View file

@ -274,9 +274,13 @@ lint-xml:
-name "*.xml" -type f -print0 | xargs -0 -n1 xmllint --noout
lint-exec: check
@find ${.CURDIR}/src/opnsense/scripts -type f ! -name "*.xml" \
-print0 | xargs -0 -t -n1 test -x || \
(echo "Missing executable permission"; exit 1)
.for DIR in ${.CURDIR}/src/opnsense/scripts ${.CURDIR}/src/etc/rc.d
.if exists(${DIR})
@find ${DIR} -type f ! -name "*.xml" -print0 | \
xargs -0 -t -n1 test -x || \
(echo "Missing executable permission in ${DIR}"; exit 1)
.endif
.endfor
lint-php: check
@find ${.CURDIR}/src \