0
|
1 |
#!/bin/sh
|
|
2 |
|
|
3 |
# sets VERSION to the value if RELEASE if there are any,
|
|
4 |
# otherwise it sets VERSION to revision number
|
|
5 |
if [ "$3" ]; then
|
|
6 |
VERSION="$3"
|
|
7 |
else
|
|
8 |
VERSION="$2"
|
|
9 |
fi
|
|
10 |
|
|
11 |
# Generates Info.plist while applying $VERSION
|
|
12 |
|
|
13 |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
|
14 |
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"
|
|
15 |
\"http://www.apple.com/DTDs/Prop$
|
|
16 |
<plist version=\"1.0\">
|
|
17 |
<dict>
|
|
18 |
<key>CFBundleDevelopmentRegion</key>
|
|
19 |
<string>English</string>
|
|
20 |
<key>CFBundleDisplayName</key>
|
|
21 |
<string>Open Transport Tycoon</string>
|
|
22 |
<key>CFBundleExecutable</key>
|
35
|
23 |
<string>openttd</string>
|
0
|
24 |
<key>CFBundleGetInfoString</key>
|
|
25 |
<string>$VERSION, Copyright 2004 The Open Transport Tycoon team</string>
|
|
26 |
<key>CFBundleIconFile</key>
|
35
|
27 |
<string>openttd.icns</string>
|
0
|
28 |
<key>CFBundleIdentifier</key>
|
|
29 |
<string>org.ludde-ottd.ludde-ottd</string>
|
|
30 |
<key>CFBundleInfoDictionaryVersion</key>
|
|
31 |
<string>6.0</string>
|
|
32 |
<key>CFBundleName</key>
|
|
33 |
<string>ottd</string>
|
|
34 |
<key>CFBundlePackageType</key>
|
|
35 |
<string>APPL</string>
|
|
36 |
<key>CFBundleShortVersionString</key>
|
|
37 |
<string>$VERSION</string>
|
|
38 |
<key>CFBundleVersion</key>
|
|
39 |
<string>$VERSION</string>
|
|
40 |
<key>NSHumanReadableCopyright</key>
|
|
41 |
<string>Copyright 2004 The Open Transport Tycoon team</string>
|
|
42 |
<key>NSPrincipalClass</key>
|
|
43 |
<string>NSApplication</string>
|
|
44 |
</dict>
|
|
45 |
</plist>" > "$1"/contents/Info.plist
|