Show the most relevant information in the vehicle list window, based on what the...
[openttd-joker.git] / os / macosx / plistgen.sh
blobb6116d9102bb1726c0d5a2e52b7f38f0456236ba
1 #!/bin/sh
3 # $Id$
5 # sets VERSION to the value if RELEASE if there are any,
6 # otherwise it sets VERSION to revision number
7 if [ "$3" ]; then
8 VERSION="$3"
9 else
10 VERSION="$2"
12 date=`date +%Y`
14 # Generates Info.plist while applying $VERSION
16 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
17 <!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"
18 \"http://www.apple.com/DTDs/Prop$
19 <plist version=\"1.0\">
20 <dict>
21 <key>CFBundleDevelopmentRegion</key>
22 <string>English</string>
23 <key>CFBundleDisplayName</key>
24 <string>OpenTTD</string>
25 <key>CFBundleExecutable</key>
26 <string>openttd</string>
27 <key>CFBundleGetInfoString</key>
28 <string>$VERSION, Copyright 2004-$date The OpenTTD team</string>
29 <key>CFBundleIconFile</key>
30 <string>openttd.icns</string>
31 <key>CFBundleIdentifier</key>
32 <string>org.openttd.openttd</string>
33 <key>CFBundleInfoDictionaryVersion</key>
34 <string>6.0</string>
35 <key>CFBundleName</key>
36 <string>OpenTTD</string>
37 <key>CFBundlePackageType</key>
38 <string>APPL</string>
39 <key>CFBundleShortVersionString</key>
40 <string>$VERSION</string>
41 <key>CFBundleVersion</key>
42 <string>$VERSION</string>
43 <key>NSHumanReadableCopyright</key>
44 <string>Copyright 2004-$date The OpenTTD team</string>
45 <key>NSPrincipalClass</key>
46 <string>NSApplication</string>
47 </dict>
48 </plist>" > "$1"/Contents/Info.plist