Subject: Re: share/examples vs. CHECK_INTERPRETER
To: None <pkgsrc-users@NetBSD.org>
From: Klaus Heinz <k.heinz.jul.sechs@onlinehome.de>
List: pkgsrc-users
Date: 07/07/2006 12:05:05
--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Roland Illig wrote:

> From mk/check/check-interpreter.mk:
> 
> # 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.

Does not work right now.

  $ make show-var VARNAME=_CHECK_INTERP_SKIP_FILTER
  case $file in /usr/pkg/share/doc|share/doc) continue ;;
  /usr/pkg/share/examples|share/examples) continue ;; *) ;; esac

How about the attached patch for check-interpreter.mk?

ciao
     Klaus

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="check-interpreter.mk.diff"

--- check-interpreter.mk.orig	2006-07-06 14:21:30.000000000 +0200
+++ check-interpreter.mk	2006-07-07 12:01:25.000000000 +0200
@@ -12,7 +12,9 @@
 #
 # The following variables may be set by a package:
 #
-# CHECK_INTERPRETER_SKIP: List of PathMask (default: empty)
+# CHECK_INTERPRETER_SKIP: List of paths or paths with wildcards
+#	(default: empty)
+#	(example: share/package1/* share/package2/somefile)
 #	The list of files that are skipped when running the check.
 #	Additionally, all files in share/examples and share/doc are
 #	skipped as well.
@@ -21,8 +23,8 @@
 CHECK_INTERPRETER?=		no
 CHECK_INTERPRETER_SKIP?=	# empty
 
-_CHECK_INTERP_SKIP=		share/doc
-_CHECK_INTERP_SKIP+=		share/examples
+_CHECK_INTERP_SKIP=		share/doc/*
+_CHECK_INTERP_SKIP+=		share/examples/*
 _CHECK_INTERP_SKIP+=		${CHECK_INTERPRETER_SKIP}
 
 _CHECK_INTERP_SKIP_FILTER=	case $$file in

--8t9RHnE3ZwKMSgU+--