2020-10-24 11:50:17 +03:00
|
|
|
# $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
|
2009-11-19 03:30:25 +03:00
|
|
|
|
|
|
|
# pick up a bunch of exported vars
|
2020-07-27 22:45:56 +03:00
|
|
|
FILTER_CMD= grep ^UT_
|
2014-08-21 17:44:51 +04:00
|
|
|
.include "export.mk"
|
2009-11-19 03:30:25 +03:00
|
|
|
|
|
|
|
# an example of setting up a minimal environment.
|
2020-10-24 11:50:17 +03:00
|
|
|
PATH= /bin:/usr/bin:/sbin:/usr/sbin
|
2009-11-19 03:30:25 +03:00
|
|
|
|
|
|
|
# now clobber the environment to just PATH and UT_TEST
|
2020-10-24 11:50:17 +03:00
|
|
|
UT_TEST= unexport-env
|
2009-11-19 03:30:25 +03:00
|
|
|
|
|
|
|
# this removes everything
|
|
|
|
.unexport-env
|
|
|
|
.export PATH UT_TEST
|