diff --git a/os/macosx/plistgen.sh b/os/macosx/plistgen.sh new file mode 100755 --- /dev/null +++ b/os/macosx/plistgen.sh @@ -0,0 +1,46 @@ +#!/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 + Open Transport Tycoon + CFBundleExecutable + openttd + CFBundleGetInfoString + $VERSION, Copyright 2004-$date The Open Transport Tycoon team + CFBundleIconFile + openttd.icns + CFBundleIdentifier + org.ludde-ottd.ludde-ottd + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ottd + CFBundlePackageType + APPL + CFBundleShortVersionString + $VERSION + CFBundleVersion + $VERSION + NSHumanReadableCopyright + Copyright 2004-$date The Open Transport Tycoon team + NSPrincipalClass + NSApplication + +" > "$1"/contents/Info.plist