#!/bin/sh # sets VERSION to the value if RELEASE if there are any, # otherwise it sets VERSION to revision number if [ "$3" ]; then VERSION="$3" else VERSION="$2" fi date=`date +%Y` # Generates Info.plist while applying $VERSION echo " CFBundleDevelopmentRegion English CFBundleDisplayName OpenTTD CFBundleExecutable openttd CFBundleGetInfoString $VERSION, Copyright 2004-$date The OpenTTD team CFBundleIconFile openttd.icns CFBundleIdentifier org.openttd.openttd CFBundleInfoDictionaryVersion 6.0 CFBundleName OpenTTD CFBundlePackageType APPL CFBundleShortVersionString $VERSION CFBundleVersion $VERSION NSHumanReadableCopyright Copyright 2004-$date The OpenTTD team NSPrincipalClass NSApplication " > "$1"/Contents/Info.plist