aboutsummaryrefslogblamecommitdiff
path: root/contrib/bmake/unit-tests/unexport-env.mk
blob: bc5fb4914ddc30558926b9aeea885cee57c36615 (plain) (tree)
1
2
3
4
5
                                                              

                                  
                         
                    









                                                      
# $Id: unexport-env.mk,v 1.1.1.2 2020/07/28 16:57:18 sjg 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