author | KUDr |
Sat, 07 Oct 2006 20:31:38 +0000 | |
changeset 4769 | 172e18f63248 |
parent 4530 | 1cb4289dda98 |
child 8630 | fbd4990ad648 |
permissions | -rwxr-xr-x |
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 |
|
1061
b78bce54b0dd
(svn r1562) Changed copyright 2004 into copyright 2004-(current year) in the get info window in finder (macOSX)
bjarni
parents:
35
diff
changeset
|
10 |
date=`date +%Y` |
0 | 11 |
|
12 |
# Generates Info.plist while applying $VERSION |
|
13 |
||
14 |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> |
|
15 |
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" |
|
16 |
\"http://www.apple.com/DTDs/Prop$ |
|
17 |
<plist version=\"1.0\"> |
|
18 |
<dict> |
|
19 |
<key>CFBundleDevelopmentRegion</key> |
|
20 |
<string>English</string> |
|
21 |
<key>CFBundleDisplayName</key> |
|
22 |
<string>Open Transport Tycoon</string> |
|
23 |
<key>CFBundleExecutable</key> |
|
35 | 24 |
<string>openttd</string> |
0 | 25 |
<key>CFBundleGetInfoString</key> |
4530
1cb4289dda98
(svn r6357) -Cleanup: [OSX] corrected some info for the bundle (info window in finder)
bjarni
parents:
2225
diff
changeset
|
26 |
<string>$VERSION, Copyright 2004-$date The OpenTTD team</string> |
0 | 27 |
<key>CFBundleIconFile</key> |
35 | 28 |
<string>openttd.icns</string> |
0 | 29 |
<key>CFBundleIdentifier</key> |
4530
1cb4289dda98
(svn r6357) -Cleanup: [OSX] corrected some info for the bundle (info window in finder)
bjarni
parents:
2225
diff
changeset
|
30 |
<string>org.openttd.openttd</string> |
0 | 31 |
<key>CFBundleInfoDictionaryVersion</key> |
32 |
<string>6.0</string> |
|
33 |
<key>CFBundleName</key> |
|
2225
f6ac54bad028
(svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
bjarni
parents:
1720
diff
changeset
|
34 |
<string>OpenTTD</string> |
0 | 35 |
<key>CFBundlePackageType</key> |
36 |
<string>APPL</string> |
|
37 |
<key>CFBundleShortVersionString</key> |
|
38 |
<string>$VERSION</string> |
|
39 |
<key>CFBundleVersion</key> |
|
40 |
<string>$VERSION</string> |
|
41 |
<key>NSHumanReadableCopyright</key> |
|
4530
1cb4289dda98
(svn r6357) -Cleanup: [OSX] corrected some info for the bundle (info window in finder)
bjarni
parents:
2225
diff
changeset
|
42 |
<string>Copyright 2004-$date The OpenTTD team</string> |
0 | 43 |
<key>NSPrincipalClass</key> |
44 |
<string>NSApplication</string> |
|
45 |
</dict> |
|
1720
8f64ceed5778
(svn r2224) -Fix: capital-correctness for OSX-dir-names
truelight
parents:
1694
diff
changeset
|
46 |
</plist>" > "$1"/Contents/Info.plist |