Mercurial > hg > sonic-visualiser
comparison deploy/osx/deploy.sh @ 1648:105d7d46455e
Handle versions without hyphen separator here
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 06 Mar 2017 10:13:05 +0000 |
parents | 422d7ac46232 |
children | b693b9218f66 |
comparison
equal
deleted
inserted
replaced
1647:83570fc2bc61 | 1648:105d7d46455e |
---|---|
20 | 20 |
21 set -u | 21 set -u |
22 | 22 |
23 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` | 23 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` |
24 stem=${version%%-*} | 24 stem=${version%%-*} |
25 stem=${stem%%pre*} | |
25 case "$stem" in | 26 case "$stem" in |
26 [0-9].[0-9]) bundleVersion="$version".0 ;; | 27 [0-9].[0-9]) bundleVersion="$stem".0 ;; |
27 [0-9].[0-9].[0-9]) bundleVersion="$version" ;; | 28 [0-9].[0-9].[0-9]) bundleVersion="$stem" ;; |
28 *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number" ;; | 29 *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number" ;; |
29 esac | 30 esac |
30 | 31 |
31 echo | 32 echo |
32 echo "Copying in frameworks and plugins from Qt installation directory." | 33 echo "Copying in frameworks and plugins from Qt installation directory." |