Mercurial > hg > easyhg
changeset 260:7057a4dcac3e
* Version -> 0.3.1 (and update OS/X deploy to handle three-part versions)
author | Chris Cannam |
---|---|
date | Wed, 12 Jan 2011 15:52:53 +0000 |
parents | f32465eba055 |
children | a7843b03b4cf |
files | deploy/osx/deploy.sh version.h |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/deploy/osx/deploy.sh Wed Jan 12 15:46:37 2011 +0000 +++ b/deploy/osx/deploy.sh Wed Jan 12 15:52:53 2011 +0000 @@ -6,7 +6,11 @@ app=EasyMercurial version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` -bundleVersion="$version".0 +case "$version" in + [0-9].[0-9]) bundleVersion="$version".0 ;; + [0-9].[0-9].[0-9]) bundleVersion="$version" ;; + *) echo "Error: Version $version is neither two- nor three-part number" ;; +esac echo echo "Writing version $bundleVersion in to bundle."