From 540875f0c06d5ff76d41346a2f1ed15d275df2f1 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 6 Jun 2006 18:07:50 +0000 Subject: 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. --- mk/check/check-wrkref.mk | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'mk/check') 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) -- cgit v1.2.3