changeset 262:a7843b03b4cf easyhg_v0.3.1

Merge
author Chris Cannam
date Wed, 12 Jan 2011 15:54:08 +0000
parents 0dbfea0099ca (current diff) 7057a4dcac3e (diff)
children 25efd198e3d4
files
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/osx/deploy.sh	Wed Jan 12 15:53:46 2011 +0000
+++ b/deploy/osx/deploy.sh	Wed Jan 12 15:54:08 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."
--- a/version.h	Wed Jan 12 15:53:46 2011 +0000
+++ b/version.h	Wed Jan 12 15:54:08 2011 +0000
@@ -1,1 +1,1 @@
-#define EASYHG_VERSION "0.3"
+#define EASYHG_VERSION "0.3.1"