9772f81de8
and .unexport-env which unexport's all previously .export'd globals as well as clearing environ[]. Allow's sys.mk near total controll. Reviewed by: apb
15 lines
339 B
Plaintext
15 lines
339 B
Plaintext
# $Id: unexport-env,v 1.1 2009/11/19 00:30:25 sjg Exp $
|
|
|
|
# pick up a bunch of exported vars
|
|
.include "export"
|
|
|
|
# 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
|