comparison deploy/osx/deploy.sh @ 463:0ef4943f55ae

Descriptive text
author Chris Cannam
date Thu, 21 Jul 2011 15:49:00 +0100
parents 44741262c2e0
children f8833ed742fc
comparison
equal deleted inserted replaced
460:f84413dd5a7a 463:0ef4943f55ae
7 7
8 source="$1" 8 source="$1"
9 dmg="$2" 9 dmg="$2"
10 if [ -z "$source" ] || [ ! -d "$source" ] || [ -z "$dmg" ]; then 10 if [ -z "$source" ] || [ ! -d "$source" ] || [ -z "$dmg" ]; then
11 echo "Usage: $0 <source.app> <target-dmg-basename>" 11 echo "Usage: $0 <source.app> <target-dmg-basename>"
12 echo " e.g. $0 MyApplication.app MyApplication"
13 echo " Version number and .dmg will be appended automatically,"
14 echo " but the .app name must include .app"
12 exit 2 15 exit 2
13 fi 16 fi
14 app=`basename "$source" .app` 17 app=`basename "$source" .app`
15 18
16 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` 19 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`