pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: share/examples vs. CHECK_INTERPRETER



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
--- 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


Home | Main Index | Thread Index | Old Index