xref: /xnu-8796.121.2/SETUP/setup.sh (revision c54f35ca767986246321eb901baf8f5ff7923f6a)
1*c54f35caSApple OSS Distributionssetup_tmp=`mktemp -d -t setup`
2*c54f35caSApple OSS Distributionsprintenv | sort > "${setup_tmp}/orig"
3*c54f35caSApple OSS Distributionsmake print_exports | grep -E -v '^(MAKE|MFLAGS|SHLVL)' > "${setup_tmp}/exports"
4*c54f35caSApple OSS Distributionseval `comm -13 "${setup_tmp}/orig" "${setup_tmp}/exports" | sed 's,^\(.*\)$,export "\1",'`
5*c54f35caSApple OSS Distributions
6*c54f35caSApple OSS Distributions
7