diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-04 18:40:35 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-04 18:40:35 (GMT) |
commit | a32dcbf4ba7e9439433cf7727066a466058629ba (patch) | |
tree | f6ebe0e8f1ed170e709a94d8d8f43898911c2aae /scripts/setenv-mingw-xbuild.sh | |
parent | 8208fe143703f49297be23ca7d102ef1b74d5571 (diff) |
enable MXEDIR to bet user-set. improve linux doc.
Diffstat (limited to 'scripts/setenv-mingw-xbuild.sh')
-rw-r--r-- | scripts/setenv-mingw-xbuild.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/setenv-mingw-xbuild.sh b/scripts/setenv-mingw-xbuild.sh index 09a1900..a650f50 100644 --- a/scripts/setenv-mingw-xbuild.sh +++ b/scripts/setenv-mingw-xbuild.sh @@ -12,11 +12,13 @@ # if [ ! $BASEDIR ]; then - BASEDIR=$HOME/openscad_deps + export BASEDIR=$HOME/openscad_deps fi export OPENSCADDIR=$PWD export DEPLOYDIR=$OPENSCADDIR/mingw32 -export MXEDIR=$BASEDIR/mxe +if [ ! $MXEDIR ]; then + export MXEDIR=$BASEDIR/mxe +fi export PATH=$MXEDIR/usr/bin:$PATH echo BASEDIR: $BASEDIR @@ -28,11 +30,8 @@ if [ ! -e $DEPLOYDIR ]; then mkdir -p $DEPLOYDIR fi -if [ ! -h $DEPLOYDIR/mingw-cross-env ]; then - echo linking $MXEDIR/usr/i686-pc-mingw32/ to $DEPLOYDIR/mingw-cross-env - ln -s $MXEDIR/usr/i686-pc-mingw32/ $DEPLOYDIR/mingw-cross-env -else - echo $DEPLOYDIR/mingw-cross-env is already symlinked -fi +echo linking $MXEDIR/usr/i686-pc-mingw32/ to $DEPLOYDIR/mingw-cross-env +rm -f $DEPLOYDIR/mingw-cross-env +ln -s $MXEDIR/usr/i686-pc-mingw32/ $DEPLOYDIR/mingw-cross-env |