2012-08-03 15:30:28 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-08-04 04:38:47 +04:00
|
|
|
# This is run as part of the checklist in docs/release-checklist.txt
|
|
|
|
#
|
2012-08-03 15:30:28 +04:00
|
|
|
# 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
|
|
|
|
|
2012-08-04 04:38:47 +04:00
|
|
|
if [ ! -e $MXEDIR ]; then
|
2012-08-05 05:04:40 +04:00
|
|
|
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
|
2012-08-04 04:38:47 +04:00
|
|
|
fi
|
|
|
|
|
2012-08-03 15:30:28 +04:00
|
|
|
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
|
|
|
|
echo "Must be run from the OpenSCAD source root directory"
|
2012-08-05 05:04:40 +04:00
|
|
|
exit 1
|
2012-08-03 15:30:28 +04:00
|
|
|
fi
|
|
|
|
|
2012-12-20 04:34:37 +04:00
|
|
|
./scripts/release-common.sh -v $VERSION $COMMIT mingw32
|
2012-08-04 04:22:22 +04:00
|
|
|
|
|
|
|
if [ $? != 0 ]; then
|
2012-08-04 04:38:47 +04:00
|
|
|
echo "release-common.sh returned error code: $?. build stopped."
|
2012-08-03 15:30:28 +04:00
|
|
|
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
|