From 6a5a8f3b7dd5696202c14be2981d0f8c404095cf Mon Sep 17 00:00:00 2001 From: kintel Date: Sat, 9 Jan 2010 10:13:26 +0000 Subject: [PATCH] Mac OS X release script update git-svn-id: http://svn.clifford.at/openscad/trunk@243 b57f626f-c46c-0410-a088-ec61d464b74c --- publish-macosx.sh | 8 ++++++++ release-macosx.sh | 31 +++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100755 publish-macosx.sh diff --git a/publish-macosx.sh b/publish-macosx.sh new file mode 100755 index 00000000..4b9abb4f --- /dev/null +++ b/publish-macosx.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +VERSION=`date "+%Y.%m.%d"` +#VERSION=2010.02 + +./release-macosx.sh -v $VERSION +cp openscad-$VERSION.zip ~/Documents/Dropbox/Public +ln -sf openscad-$VERSION.zip ~/Documents/Dropbox/Public/openscad-latest.zip diff --git a/release-macosx.sh b/release-macosx.sh index 5a4af58b..31d17a67 100755 --- a/release-macosx.sh +++ b/release-macosx.sh @@ -1,10 +1,33 @@ #!/bin/sh -# WARNING: This script might only work with the authors setup... +# +# 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: makedmg.sh [-v ] +# -v Version string (e.g. -v 2010.01) +# +# If no version string is given, todays date will be used (YYYY-MM-DD) +# +printUsage() +{ + echo "Usage: $0 -v " + echo + echo " Example: $0 -v 2010.01" +} -VERSION=`date "+%Y.%m.%d"` -#VERSION=2010.01 +while getopts 'v:' c +do + case $c in + v) VERSION=$OPTARG;; + esac +done -echo "Building.." +if test -z "$VERSION"; then + VERSION=`date "+%Y.%m.%d"` +fi + +echo "Building openscad-$VERSION..." export OPENCSGDIR=$PWD/../OpenCSG-1.2.0 qmake VERSION=$VERSION CONFIG+=mdi make clean