comparison 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
comparison
equal deleted inserted replaced
259:f32465eba055 260:7057a4dcac3e
4 # that contains the .app bundle). 4 # that contains the .app bundle).
5 5
6 app=EasyMercurial 6 app=EasyMercurial
7 7
8 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` 8 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
9 bundleVersion="$version".0 9 case "$version" in
10 [0-9].[0-9]) bundleVersion="$version".0 ;;
11 [0-9].[0-9].[0-9]) bundleVersion="$version" ;;
12 *) echo "Error: Version $version is neither two- nor three-part number" ;;
13 esac
10 14
11 echo 15 echo
12 echo "Writing version $bundleVersion in to bundle." 16 echo "Writing version $bundleVersion in to bundle."
13 echo "(This should be a three-part number: major.minor.point)" 17 echo "(This should be a three-part number: major.minor.point)"
14 18