Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.4  rillig # $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
      2  1.1     apb 
      3  1.1     apb # pick up a bunch of exported vars
      4  1.2  rillig FILTER_CMD=	grep ^UT_
      5  1.1     apb .include "export.mk"
      6  1.1     apb 
      7  1.1     apb # an example of setting up a minimal environment.
      8  1.4  rillig PATH=	/bin:/usr/bin:/sbin:/usr/sbin
      9  1.1     apb 
     10  1.1     apb # now clobber the environment to just PATH and UT_TEST
     11  1.4  rillig UT_TEST=	unexport-env
     12  1.1     apb 
     13  1.1     apb # this removes everything
     14  1.1     apb .unexport-env
     15  1.1     apb .export PATH UT_TEST
     16