diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish-mingw-x.sh | 14 | ||||
-rwxr-xr-x | scripts/release-common.sh | 8 |
2 files changed, 13 insertions, 9 deletions
diff --git a/scripts/publish-mingw-x.sh b/scripts/publish-mingw-x.sh index 4e0afe9..d6cebcd 100755 --- a/scripts/publish-mingw-x.sh +++ b/scripts/publish-mingw-x.sh @@ -16,15 +16,19 @@ CCACHE_DISABLE=1 . ./scripts/setenv-mingw-xbuild.sh if [ ! -e $MXEDIR ]; then - echo "Mingw cross tools not found." - echo " Please run ./scripts/mingw-x-build-dependencies.sh to install " - echo " or modify MXEDIR to point to the root of your cross-tools setup" - echo " ( Please see setenv-mingw-xbuild.sh for more info ) " + echo "MXEDIR: $MXEDIR" + echo "MXEDIR is a non-existent path. Mingw cross tools not found." + echo + echo " Please run ./scripts/mingw-x-build-dependencies.sh to install MXE" + echo " or modify MXEDIR to point to the root of your cross-tools setup" + echo " ( Please see http://mxe.cc for more info ) " + echo + exit 1 fi if [ ! -f $OPENSCADDIR/openscad.pro ]; then echo "Must be run from the OpenSCAD source root directory" - exit 0 + exit 1 fi OSTYPE=mingw-cross-env ./scripts/release-common.sh -v $VERSION $COMMIT diff --git a/scripts/release-common.sh b/scripts/release-common.sh index dfebe13..202efaa 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -67,9 +67,9 @@ case $OS in LINXWIN) MAKENSIS= - if [ ! "`command -v makensis`" ]; then + if [ "`command -v makensis`" ]; then MAKENSIS=makensis - elif [ ! "`command -v i686-pc-mingw32-makensis`" ]; then + elif [ "`command -v i686-pc-mingw32-makensis`" ]; then MAKENSIS=i686-pc-mingw32-makensis else echo "makensis not found. please install nsis" @@ -189,10 +189,10 @@ if [ -n $LIBRARYDIR ]; then mkdir -p $LIBRARYDIR # exclude the .git stuff from MCAD which is a git submodule. # tar is a relatively portable way to do exclusion - rm libraries.tar + rm -f libraries.tar tar cf libraries.tar --exclude=.git* libraries cd $LIBRARYDIR/.. && tar xf $OPENSCADDIR/libraries.tar && cd $OPENSCADDIR - rm libraries.tar + rm -f libraries.tar chmod -R u=rwx,go=r,+X $LIBRARYDIR/* fi |