Mercurial > hg > sonic-visualiser
comparison deploy/osx/deploy.sh @ 1055:40ff7c801fc2 3.0-integration
Check for audioIO as well as play target; + deployment bits
author | Chris Cannam |
---|---|
date | Thu, 20 Aug 2015 16:41:51 +0100 |
parents | d18c89386a71 |
children | b2c45b831ea8 |
comparison
equal
deleted
inserted
replaced
1054:6e5ad3e8bd49 | 1055:40ff7c801fc2 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | |
3 set -e | |
2 | 4 |
3 # Execute this from the top-level directory of the project (the one | 5 # Execute this from the top-level directory of the project (the one |
4 # that contains the .app bundle). Supply the name of the .app bundle | 6 # that contains the .app bundle). Supply the name of the .app bundle |
5 # as argument (the target will use $app.app regardless, but we need | 7 # as argument (the target will use $app.app regardless, but we need |
6 # to know the source) | 8 # to know the source) |
14 echo " but the .app name must include .app" | 16 echo " but the .app name must include .app" |
15 exit 2 | 17 exit 2 |
16 fi | 18 fi |
17 app=`basename "$source" .app` | 19 app=`basename "$source" .app` |
18 | 20 |
21 set -u | |
22 | |
19 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` | 23 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` |
20 case "$version" in | 24 stem=${version%%-*} |
25 case "$stem" in | |
21 [0-9].[0-9]) bundleVersion="$version".0 ;; | 26 [0-9].[0-9]) bundleVersion="$version".0 ;; |
22 [0-9].[0-9].[0-9]) bundleVersion="$version" ;; | 27 [0-9].[0-9].[0-9]) bundleVersion="$version" ;; |
23 *) echo "Error: Version $version is neither two- nor three-part number" ;; | 28 *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number" ;; |
24 esac | 29 esac |
25 | 30 |
26 echo | 31 echo |
27 echo "Copying in frameworks and plugins from Qt installation directory." | 32 echo "Copying in frameworks and plugins from Qt installation directory." |
28 | 33 |