Mercurial > hg > easyhg
comparison deploy/osx/deploy.sh @ 262:a7843b03b4cf easyhg_v0.3.1
Merge
author | Chris Cannam |
---|---|
date | Wed, 12 Jan 2011 15:54:08 +0000 |
parents | 7057a4dcac3e |
children | facd86e268b9 |
comparison
equal
deleted
inserted
replaced
261:0dbfea0099ca | 262:a7843b03b4cf |
---|---|
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 |