pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/check Added a proper interface documentation. Inste...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d373fce1bc01
branches: trunk
changeset: 515375:d373fce1bc01
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jul 02 09:38:42 2006 +0000
description:
Added a proper interface documentation. Instead of a .for loop, the
run-time for loop is used, which allows for white-space in
CHECK_INTERPRETER_SKIP.
diffstat:
mk/check/check-interpreter.mk | 33 ++++++++++++++++++++++++---------
1 files changed, 24 insertions(+), 9 deletions(-)
diffs (45 lines):
diff -r 33e333bd4351 -r d373fce1bc01 mk/check/check-interpreter.mk
--- a/mk/check/check-interpreter.mk Sun Jul 02 09:35:05 2006 +0000
+++ b/mk/check/check-interpreter.mk Sun Jul 02 09:38:42 2006 +0000
@@ -1,17 +1,32 @@
-# $NetBSD: check-interpreter.mk,v 1.7 2006/06/16 12:03:38 rillig Exp $
-
-CHECK_INTERPRETER?= no
+# $NetBSD: check-interpreter.mk,v 1.8 2006/07/02 09:38:42 rillig Exp $
-###########################################################################
-# CHECK_INTERPRETER_SKIP is a list of shell globs. Installed files that
-# match these globs are skipped when running the check-interpreter target.
+# This file checks that after installation, all files of the package
+# that start with a "#!" line will find their interpreter. Files that
+# have a "#!" line with a non-existent interpreter will generate an
+# error message if they are executable, and a warning message otherwise.
+#
+# The following variables may be set by the pkgsrc user in mk.conf:
+#
+# CHECK_INTERPRETER: YesNo (default: no)
+# Whether this check should be enabled or not.
#
+# The following variables may be set by a package:
+#
+# CHECK_INTERPRETER_SKIP: List of PathMask (default: empty)
+# The list of files that are skipped when running the check.
+# Additionally, all files in share/examples and share/doc are
+# skipped as well.
+#
+
+CHECK_INTERPRETER?= no
CHECK_INTERPRETER_SKIP?= # empty
+_CHECK_INTERP_SKIP= share/doc
+_CHECK_INTERP_SKIP+= share/examples
+_CHECK_INTERP_SKIP+= ${CHECK_INTERPRETER_SKIP}
+
_CHECK_INTERP_SKIP_FILTER= case $$file in
-.for _pattern_ in ${CHECK_INTERPRETER_SKIP}
-_CHECK_INTERP_SKIP_FILTER+= ${PREFIX}/${_pattern_}|${_pattern_}) continue ;;
-.endfor
+_CHECK_INTERP_SKIP_FILTER+= ${_CHECK_INTERP_SKIP:@.pattern.@${PREFIX}/${.pattern.}|${.pattern.}) continue ;;@}
_CHECK_INTERP_SKIP_FILTER+= *) ;;
_CHECK_INTERP_SKIP_FILTER+= esac
Home |
Main Index |
Thread Index |
Old Index