diff options
author | Marius Kintel <marius@kintel.net> | 2012-08-13 19:57:16 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-08-13 19:57:16 (GMT) |
commit | 7ef48a28ff7353d90165af43de095c806852ab43 (patch) | |
tree | 048130c499a1ae45eeb57bc925e66b3f13068ab6 /scripts/publish-mingw-x.sh | |
parent | faeebb18e46b8c08b7ff8dec15e991fee0e0e276 (diff) | |
parent | 8318c672a821e329dfb3b9eaec886ed3b28c550d (diff) |
Merge pull request #170 from openscad/mingw_installer2
Mingw installer2
Diffstat (limited to 'scripts/publish-mingw-x.sh')
-rwxr-xr-x | scripts/publish-mingw-x.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/scripts/publish-mingw-x.sh b/scripts/publish-mingw-x.sh new file mode 100755 index 0000000..d6cebcd --- /dev/null +++ b/scripts/publish-mingw-x.sh @@ -0,0 +1,53 @@ +#!/bin/sh + +# This is run as part of the checklist in docs/release-checklist.txt +# +# Set this if we're doing a release build. Comment it out for development builds +#VERSION=2011.12 + +if test -z "$VERSION"; then + VERSION=`date "+%Y.%m.%d"` + COMMIT=-c +fi + +# Turn off ccache, just for safety +CCACHE_DISABLE=1 + +. ./scripts/setenv-mingw-xbuild.sh + +if [ ! -e $MXEDIR ]; then + 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 1 +fi + +OSTYPE=mingw-cross-env ./scripts/release-common.sh -v $VERSION $COMMIT + +if [ $? != 0 ]; then + echo "release-common.sh returned error code: $?. build stopped." + exit 1 +fi + +echo "Please upload these files to the appropriate location" +BINFILE=$DEPLOYDIR/OpenSCAD-$VERSION.zip +INSTALLFILE=$DEPLOYDIR/OpenSCAD-$VERSION-Installer.exe +echo $BINFILE +echo $INSTALLFILE + +echo +echo "Then copy/paste these commands into your shell:" +echo + +# Update snapshot filename on wab page +echo ./scripts/update-web.sh OpenSCAD-$VERSION.zip +echo ./scripts/update-web.sh OpenSCAD-$VERSION-Installer.exe |