From 1efcc824d352fee9998d22428ac28c341062ea92 Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 11 Mar 2020 19:21:00 +0000 Subject: mk/check: enable check-portability for [[ Since pkgtools/check-portability is not installed by default, it will not harm any existing pkgsrc setup. To activate it, it has to be installed manually. After a testing phase, it will be installed whenever PKG_DEVELOPER is set. --- mk/check/check-portability.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mk/check/check-portability.sh') diff --git a/mk/check/check-portability.sh b/mk/check/check-portability.sh index 2a050b06fe0..8604fef832d 100644 --- a/mk/check/check-portability.sh +++ b/mk/check/check-portability.sh @@ -1,4 +1,4 @@ -# $NetBSD: check-portability.sh,v 1.10 2019/01/17 00:11:44 rillig Exp $ +# $NetBSD: check-portability.sh,v 1.11 2020/03/11 19:21:00 rillig Exp $ # # This program checks all files in the current directory and any # subdirectories for portability issues that are likely to result in @@ -27,6 +27,11 @@ check_shell() { -f "$checkdir/check-portability.awk" \ < "$1" 1>&2 \ || cs_exitcode=1 + + if test -f "${PREFIX}/bin/check-portability"; then + ${PREFIX}/bin/check-portability "$1" 1>&2 \ + || cs_exitcode=1 + fi } find * -type f -print 2>/dev/null \ -- cgit v1.2.3