2004-08-09 17:04:08 +00:00
|
|
|
#!/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
|
2005-01-18 23:48:55 +00:00
|
|
|
date=`date +%Y`
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
# Generates Info.plist while applying $VERSION
|
|
|
|
|
|
|
|
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
|
|
|
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"
|
|
|
|
\"http://www.apple.com/DTDs/Prop$
|
|
|
|
<plist version=\"1.0\">
|
|
|
|
<dict>
|
|
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
|
|
<string>English</string>
|
|
|
|
<key>CFBundleDisplayName</key>
|
|
|
|
<string>Open Transport Tycoon</string>
|
|
|
|
<key>CFBundleExecutable</key>
|
2004-08-12 22:41:16 +00:00
|
|
|
<string>openttd</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>CFBundleGetInfoString</key>
|
2006-09-03 15:45:48 +00:00
|
|
|
<string>$VERSION, Copyright 2004-$date The OpenTTD team</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>CFBundleIconFile</key>
|
2004-08-12 22:41:16 +00:00
|
|
|
<string>openttd.icns</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>CFBundleIdentifier</key>
|
2006-09-03 15:45:48 +00:00
|
|
|
<string>org.openttd.openttd</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
|
|
<string>6.0</string>
|
|
|
|
<key>CFBundleName</key>
|
2005-07-29 09:45:25 +00:00
|
|
|
<string>OpenTTD</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>CFBundlePackageType</key>
|
|
|
|
<string>APPL</string>
|
|
|
|
<key>CFBundleShortVersionString</key>
|
|
|
|
<string>$VERSION</string>
|
|
|
|
<key>CFBundleVersion</key>
|
|
|
|
<string>$VERSION</string>
|
|
|
|
<key>NSHumanReadableCopyright</key>
|
2006-09-03 15:45:48 +00:00
|
|
|
<string>Copyright 2004-$date The OpenTTD team</string>
|
2004-08-09 17:04:08 +00:00
|
|
|
<key>NSPrincipalClass</key>
|
|
|
|
<string>NSApplication</string>
|
|
|
|
</dict>
|
2005-04-24 12:47:09 +00:00
|
|
|
</plist>" > "$1"/Contents/Info.plist
|