summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-06 18:07:50 +0000
committerjlam <jlam>2006-06-06 18:07:50 +0000
commit540875f0c06d5ff76d41346a2f1ed15d275df2f1 (patch)
tree659531c5b7583a3e4e0003faa2d30aaa03294198 /mk/check
parentda1df409dcf6d27fc05525ccf3e487c0e5c98854 (diff)
downloadpkgsrc-540875f0c06d5ff76d41346a2f1ed15d275df2f1.tar.gz
Fix problem with saving variables whose value contains "$$" by avoiding
it altogether. In this case, saving _CHECK_WRKREF_SKIP_FILTER was problematic because the value was cached and in the process, one $ was stripped. This makes the check-wrkref target work again after the big refactoring commit from a couple of days ago.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-wrkref.mk21
1 files changed, 10 insertions, 11 deletions
diff --git a/mk/check/check-wrkref.mk b/mk/check/check-wrkref.mk
index 51d93e43148..c780516c30b 100644
--- a/mk/check/check-wrkref.mk
+++ b/mk/check/check-wrkref.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-wrkref.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $
+# $NetBSD: check-wrkref.mk,v 1.2 2006/06/06 18:07:50 jlam Exp $
.if defined(PKG_DEVELOPER)
CHECK_WRKREF?= tools
@@ -9,22 +9,21 @@ CHECK_WRKREF?= no
# CHECK_WRKREF_SKIP is a list of shell globs. Installed files that
# match these globs are skipped when running the check-wrkref target.
#
-.if make(check-wrkref)
-. if !defined(_CHECK_WRKREF_SKIP_FILTER)
+.if !defined(_CHECK_WRKREF_SKIP_FILTER)
_CHECK_WRKREF_SKIP_FILTER= ${TRUE}
-. if defined(CHECK_WRKREF_SKIP) && !empty(CHECK_WRKREF_SKIP)
+. if defined(CHECK_WRKREF_SKIP) && !empty(CHECK_WRKREF_SKIP)
_CHECK_WRKREF_SKIP_FILTER= case "$$file" in
-. for _pattern_ in ${CHECK_WRKREF_SKIP}
-_CHECK_WRKREF_SKIP_FILTER+= ${_pattern_}) continue ;;
-. endfor
+_CHECK_WRKREF_SKIP_FILTER+= ${_CHECK_WRKREF_SKIP_FILTER_BODY}
_CHECK_WRKREF_SKIP_FILTER+= *) ;;
_CHECK_WRKREF_SKIP_FILTER+= esac
-. endif
. endif
-MAKEVARS+= _CHECK_WRKREF_SKIP_FILTER
-.else
-_CHECK_WRKREF_SKIP_FILTER= ${TRUE}
.endif
+.if !defined(_CHECK_WRKREF_SKIP_FILTER_BODY)
+. for _pattern_ in ${CHECK_WRKREF_SKIP}
+_CHECK_WRKREF_SKIP_FILTER_BODY+= ${_pattern_}) continue ;;
+. endfor
+.endif
+MAKEVARS+= _CHECK_WRKREF_SKIP_FILTER_BODY
_CHECK_WRKREF:= ${CHECK_WRKREF}
.if !empty(_CHECK_WRKREF:Mwork)