diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-08-11 06:44:28 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-08-20 15:01:40 (GMT) |
commit | d7e158e0a81d778acaf3af1dc22e0af70048cb6f (patch) | |
tree | e924c9387b28821b867dd29114874cfc5b8f0aeb | |
parent | 8b926503af89cc671001ba4902a761a0c44b615b (diff) | |
download | mxe-d7e158e0a81d778acaf3af1dc22e0af70048cb6f.zip mxe-d7e158e0a81d778acaf3af1dc22e0af70048cb6f.tar.gz mxe-d7e158e0a81d778acaf3af1dc22e0af70048cb6f.tar.bz2 |
mxe-activate: unset env vars for interactive use
-rw-r--r-- | tools/mxe-activate | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/mxe-activate b/tools/mxe-activate index db707b2..6071d0f 100644 --- a/tools/mxe-activate +++ b/tools/mxe-activate @@ -1,10 +1,11 @@ export MXE_DIR=`pwd` export PATH=$MXE_DIR/usr/bin:$PATH -alias mxe='env -i PATH=$PATH make -C $MXE_DIR' - +MAKE=`gmake --help >/dev/null 2>&1 && echo g`make SED=`gsed --help >/dev/null 2>&1 && echo g`sed -unset `grep '^unexport' Makefile | $SED -n 's,unexport,,p' | tr '\n' ' '` +alias mxe='$MAKE -C $MXE_DIR --no-print-directory' + +unset `env | grep -v '^HOME=\|^LANG=\|MXE\|^PATH=\|^PS1=\|^TERM=' | $SED -n 's,\(.*\)=.*$,\1,p' | tr '\n' ' '` _mxe() { |