diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-08-11 06:44:28 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-08-11 06:44:28 (GMT) |
commit | 54ce1763e960cc5ce310d1a56b346451bcfbf46b (patch) | |
tree | 85eec20536b336321b37f4f4cd3c401d9ce601d5 /tools | |
parent | 9e15fe22ab4a37f9bf5d9931436ea1d5689081ad (diff) | |
download | mxe-54ce1763e960cc5ce310d1a56b346451bcfbf46b.zip mxe-54ce1763e960cc5ce310d1a56b346451bcfbf46b.tar.gz mxe-54ce1763e960cc5ce310d1a56b346451bcfbf46b.tar.bz2 |
mxe-activate: unset env vars for interactive use
Diffstat (limited to 'tools')
-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() { |