echo "usage: make-dmg <path-to-app>"
if [ ! -e $app_path ]; then
echo "file $app_path not found..."
readonly OS_VERSION=$(uname -r | awk -F. '{print $1}')
readonly OS_X_VERSION="10.6"
readonly OS_X_VERSION="10.7"
readonly OS_X_VERSION="10.8"
readonly OS_X_VERSION="10.9"
readonly OS_X_VERSION="10.10"
readonly OS_X_VERSION="10.11"
readonly OS_X_VERSION="10.12"
readonly OS_X_VERSION="10.13"
readonly OS_X_VERSION="10.14"
readonly OS_X_VERSION="10.15"
echo "ERROR: Unknown OS X version."
if [ ! -f $app_path/Contents/Resources/VERSION ]; then
echo "could not find casa version file: $app_path/Contents/Resources/VERSION"
root_path=`dirname $app_path`
name=`basename $app_path`
if [ -e $root_path/CASA ]; then
echo "cannot create dmg folder $root_path/CASA (it already exists)"