2020-11-07 19:39:21 +00:00
|
|
|
# $NetBSD: unexport.mk,v 1.5 2020/10/24 08:50:17 rillig Exp $
|
2012-06-08 21:57:36 +00:00
|
|
|
|
|
|
|
# pick up a bunch of exported vars
|
2020-09-05 16:11:04 +00:00
|
|
|
FILTER_CMD= grep ^UT_
|
2015-04-20 03:45:54 +00:00
|
|
|
.include "export.mk"
|
2012-06-08 21:57:36 +00:00
|
|
|
|
|
|
|
.unexport UT_ZOO UT_FOO
|
|
|
|
|
2020-11-07 19:39:21 +00:00
|
|
|
UT_TEST= unexport
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
# Until 2020-08-08, Var_UnExport had special handling for '\n', that code
|
|
|
|
# was not reachable though. At that point, backslash-newline has already
|
|
|
|
# been replaced with a simple space, and variables are not yet expanded.
|
|
|
|
UT_BEFORE_NL= before
|
|
|
|
UT_AFTER_NL= after
|
|
|
|
.export UT_BEFORE_NL UT_AFTER_NL
|
|
|
|
.unexport \
|
|
|
|
UT_BEFORE_NL
|
|
|
|
.unexport ${.newline} UT_AFTER_NL
|