summaryrefslogtreecommitdiff
path: root/scripts/setenv-mingw-xbuild.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-02 03:02:45 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-02 03:02:45 (GMT)
commitb942c728c1ac532d65bd780ba2a124dc0fb036b1 (patch)
tree44dfeaa30329c994f8b11d10c9c9f60b1b33cee2 /scripts/setenv-mingw-xbuild.sh
parent5036d9acea379d5177179cb8eaa60d2c93417e9a (diff)
find openscad.exe. clearup confusion re NUMCPU / NUMJOBS
Diffstat (limited to 'scripts/setenv-mingw-xbuild.sh')
-rw-r--r--scripts/setenv-mingw-xbuild.sh23
1 files changed, 3 insertions, 20 deletions
diff --git a/scripts/setenv-mingw-xbuild.sh b/scripts/setenv-mingw-xbuild.sh
index c85f84e..8417e0a 100644
--- a/scripts/setenv-mingw-xbuild.sh
+++ b/scripts/setenv-mingw-xbuild.sh
@@ -11,32 +11,15 @@
# Also see http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_X
#
-OPENSCADDIR=$PWD
-
if [ ! $BASEDIR ]; then
BASEDIR=$HOME/openscad_deps
fi
-DEPLOYDIR=$OPENSCADDIR/mingw32
-MXEDIR=$BASEDIR/mxe
-PATH=$MXEDIR/usr/bin:$PATH
+export DEPLOYDIR=$OPENSCADDIR/mingw32
+export MXEDIR=$BASEDIR/mxe
+export PATH=$MXEDIR/usr/bin:$PATH
echo MXEDIR: $MXEDIR
echo BASEDIR: $BASEDIR
echo DEPLOYDIR: $DEPLOYDIR
-echo OPENSCADDIR: $OPENSCADDIR
echo PATH modified with $MXEDIR/usr/bin
-if [ ! $NUMCPU ]; then
- echo "note: you can 'export NUMCPU=x' for multi-core compiles (x=number)";
- NUMCPU=1
-fi
-if [ ! $NUMJOBS ]; then
- echo "note: you can 'export NUMJOBS=x' for building multiple pkgs at once"
- if [ $NUMCPU -gt 2 ]; then
- NUMJOBS=$((NUMCPU/2))
- else
- NUMJOBS=1
- fi
-fi
-echo NUMCPU: $NUMCPU
-echo NUMJOBS: $NUMJOBS
contact: Jan Huwald // Impressum