2012-08-03 15:30:28 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# 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 [ ! -f $OPENSCADDIR/openscad.pro ]; then
|
|
|
|
echo "Must be run from the OpenSCAD source root directory"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
OS=LINXWIN ./scripts/release-common.sh -v $VERSION $COMMIT
|
2012-08-04 04:22:22 +04:00
|
|
|
|
|
|
|
echo $? return value
|
|
|
|
|
|
|
|
if [ $? != 0 ]; then
|
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
|