Mercurial > hg > easyhg
diff deploy/osx/deploy.sh @ 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 | f649f6066e4d |
children | facd86e268b9 |
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."