diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-14 16:37:34 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-14 16:37:34 (GMT) |
commit | 2217eff627443bcedb14441c9ae58fb62a4b52d5 (patch) | |
tree | bc129ba9ff93b595747be23ce1e236453bd2d78e /scripts/publish-macosx.sh | |
parent | 0e9274a1daddc5cfd1fd095eea3cc9ff8732d325 (diff) |
Added OPENSCAD_COMMIT define to show which git commit a binary actually is built from in the about box. Pass -c to release_common.sh to turn this on. Please use this for development builds, see publish-macosx.sh for how development vs. release is handled
Diffstat (limited to 'scripts/publish-macosx.sh')
-rwxr-xr-x | scripts/publish-macosx.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/publish-macosx.sh b/scripts/publish-macosx.sh index a2451fa..a2ded8a 100755 --- a/scripts/publish-macosx.sh +++ b/scripts/publish-macosx.sh @@ -1,15 +1,20 @@ #!/bin/sh -VERSION=`date "+%Y.%m.%d"` +# 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 PATH=${PATH//\/opt\/local\/libexec\/ccache:} # This is the same location as DEPLOYDIR in macosx-build-dependencies.sh export OPENSCAD_LIBRARIES=$PWD/../libraries/install -`dirname $0`/release-common.sh -v $VERSION +`dirname $0`/release-common.sh -v $VERSION $COMMIT if [[ $? != 0 ]]; then exit 1 fi |