summaryrefslogtreecommitdiff
path: root/scripts/mingw-x-build-installer.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-04 22:18:36 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-04 22:18:36 (GMT)
commita56721af475311b2442e9d5d937455be6f135c93 (patch)
treec2860d474e749b3ce107f5d2c8e80c5d219e6cc6 /scripts/mingw-x-build-installer.sh
parenta32dcbf4ba7e9439433cf7727066a466058629ba (diff)
use mxe's nsis if we dont have it. detect MCAD better.
Diffstat (limited to 'scripts/mingw-x-build-installer.sh')
-rwxr-xr-xscripts/mingw-x-build-installer.sh20
1 files changed, 15 insertions, 5 deletions
diff --git a/scripts/mingw-x-build-installer.sh b/scripts/mingw-x-build-installer.sh
index 4ac9f4e..e740182 100755
--- a/scripts/mingw-x-build-installer.sh
+++ b/scripts/mingw-x-build-installer.sh
@@ -27,12 +27,12 @@
OPENSCADDIR=$PWD
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
echo "Must be run from the OpenSCAD source root directory"
- exit 0
+ exit 1
fi
. ./scripts/setenv-mingw-xbuild.sh
-if [ ! -e $OPENSCADDIR/libraries/MCAD ]; then
+if [ ! -e $OPENSCADDIR/libraries/MCAD/__init__.py ]; then
echo "Downloading MCAD"
git submodule init
git submodule update
@@ -40,19 +40,29 @@ fi
if [ ! -e $DEPLOYDIR ]; then
echo $DEPLOYDIR "empty. Please build OpenSCAD for mingw32 first."
- exit 0
+ exit 1
fi
OPENSCAD_EXE=$DEPLOYDIR/release/openscad.exe
if [ ! -e $OPESCAD_EXE ]; then
echo "Can't find" $OPENSCAD_EXE "Please build OpenSCAD for mingw32 first."
- exit 0
+ exit 1
fi
+MAKENSIS=
+
if [ ! "`command -v makensis`" ]; then
+ MAKENSIS=makensis
+fi
+
+if [ ! "`command -v i686-pc-mingw32-makensis`" ]; then
+ MAKENSIS=i686-pc-mingw32-makensis
+fi
+
+if [ ! $MAKENSIS ]; then
echo "makensis not found. please install nsis"
- exit 0
+ exit 1
fi
contact: Jan Huwald // Impressum