freebsd-nq/contrib/bmake/unit-tests/unexport-env.mk
Simon J. Gerraty 956e45f6fb Update to bmake-20201101
Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py
2020-11-07 21:46:27 +00:00

16 lines
372 B
Makefile

# $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
# pick up a bunch of exported vars
FILTER_CMD= grep ^UT_
.include "export.mk"
# an example of setting up a minimal environment.
PATH= /bin:/usr/bin:/sbin:/usr/sbin
# now clobber the environment to just PATH and UT_TEST
UT_TEST= unexport-env
# this removes everything
.unexport-env
.export PATH UT_TEST