39236c6e A |
1 | setup_tmp=`mktemp -d -t setup` |
2 | printenv | sort > "${setup_tmp}/orig" |
3 | make print_exports | grep -E -v '^(MAKE|MFLAGS|SHLVL)' > "${setup_tmp}/exports" |
4 | eval `comm -13 "${setup_tmp}/orig" "${setup_tmp}/exports" | sed 's,^\(.*\)$,export "\1",'` |
5 | |
6 | |