diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-04 22:18:36 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-04 22:18:36 (GMT) |
commit | a56721af475311b2442e9d5d937455be6f135c93 (patch) | |
tree | c2860d474e749b3ce107f5d2c8e80c5d219e6cc6 | |
parent | a32dcbf4ba7e9439433cf7727066a466058629ba (diff) |
use mxe's nsis if we dont have it. detect MCAD better.
-rwxr-xr-x | scripts/mingw-x-build-dependencies.sh | 7 | ||||
-rwxr-xr-x | scripts/mingw-x-build-installer.sh | 20 | ||||
-rwxr-xr-x | scripts/release-common.sh | 2 |
3 files changed, 19 insertions, 10 deletions
diff --git a/scripts/mingw-x-build-dependencies.sh b/scripts/mingw-x-build-dependencies.sh index 1ea7d14..76bb7d4 100755 --- a/scripts/mingw-x-build-dependencies.sh +++ b/scripts/mingw-x-build-dependencies.sh @@ -40,17 +40,16 @@ if [ ! -e $BASEDIR ]; then mkdir -p $BASEDIR fi -cd $BASEDIR - -if [ ! -e mxe ]; then +if [ ! -e $MXEDIR ]; then echo "Downloading MXE into " $MXEDIR + cd $MXEDIR/.. git clone git://github.com/mxe/mxe.git fi echo "entering" $MXEDIR cd $MXEDIR echo "make mpfr eigen opencsg cgal qt -j $NUMCPU JOBS=$NUMJOBS" -make mpfr eigen opencsg cgal qt -j $NUMCPU JOBS=$NUMJOBS +make mpfr eigen opencsg cgal qt nsis -j $NUMCPU JOBS=$NUMJOBS #make mpfr -j $NUMCPU JOBS=$NUMJOBS # for testing echo "leaving" $MXEDIR 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 diff --git a/scripts/release-common.sh b/scripts/release-common.sh index ad1ccaa..84874bf 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -27,7 +27,7 @@ printUsage() OPENSCADDIR=$PWD if [ ! -f $OPENSCADDIR/openscad.pro ]; then echo "Must be run from the OpenSCAD source root directory" - exit 0 + exit 1 fi if [[ "$OSTYPE" =~ "darwin" ]]; then |