From 098ae635198f06235f207ea0cead6677b190cf16 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 14 Jan 2012 17:18:43 +0100 Subject: [PATCH] Removed obsolete script --- scripts/release-win32.sh | 96 ---------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 scripts/release-win32.sh diff --git a/scripts/release-win32.sh b/scripts/release-win32.sh deleted file mode 100644 index 540eab97..00000000 --- a/scripts/release-win32.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh -# -# This script creates a binary release of OpenSCAD for Mac OS X. -# The script will create a file called openscad-.zip -# in the current directory. -# -# Usage: release-win32.sh [-v ] -# -v Version string (e.g. -v 2010.01) -# -# If no version string is given, todays date will be used (YYYY-MM-DD) -# - -#used for windows -ZIP="/c/Program Files/7-Zip/7z.exe" -ZIPARGS="a -tzip" - -printUsage() -{ - echo "Usage: $0 -v -t " - echo - echo " Example: $0 -v 2010.01 -t release" -} - -OS=OSX -if test "`uname -o`" == "Msys"; then - OS=WIN -fi - -echo "detected OS= $OS" - -while getopts 'v:' c -do - case $c in - v) VERSION=$OPTARG;; - b) TARGET=$OPTARG;; - esac -done - -if test -z "$VERSION"; then - VERSION=`date "+%Y.%m.%d"` -fi - -if test -z "$TARGET"; then - TARGET=release -fi - -echo "Building openscad-$VERSION $CONFIGURATION..." - -case $OS in - OSX) - CONFIG = mdi;; - WIN) - unset CONFIG - export QTDIR=/c/devmingw/qt2009.03 - export QTMAKESPEC=win32-g++ - export PATH=$PATH:/c/devmingw/qt2009.03/bin:/c/devmingw/qt2009.03/qt/bin - ;; -esac - -qmake VERSION=$VERSION CONFIG+=$CONFIG -make clean -if test $OS == WIN; then - #if the following files are missing their tried removal stops the build process on msys - touch -t 200012121010 parser_yacc.h parser_yacc.cpp lexer_lex.cpp -fi - -make -j2 $TARGET - -echo "Preparing executable..." - -echo "Creating directory structure..." -rm -rf openscad-$VERSION -rm -f openscad-$VERSION.zip -mkdir -p openscad-$VERSION/examples -cp examples/* openscad-$VERSION/examples/ - -case $OS in - OSX) ;; - WIN) - #package - cp win32deps/* openscad-$VERSION - cp $TARGET/openscad.exe openscad-$VERSION - ;; -esac - -echo "Creating directory structure..." -case $OS in - OSX) ;; - WIN) - "$ZIP" $ZIPARGS openscad-$VERSION.zip openscad-$VERSION - ;; -esac - -rm -rf openscad-$VERSION - -echo "binary created: openscad-$VERSION.zip"