os/macosx/plistgen.sh
author bjarni
Sat, 08 Dec 2007 15:21:37 +0000
changeset 8535 cda5ffec8999
parent 4530 8582c903c22c
child 6878 7d1ff2f621c7
permissions -rwxr-xr-x
(svn r11599) -Change: [OSX] 10.4 will now use quickdraw for window mode instead of quartz
The reason is that quickdraw is way faster (try fast forward)
10.5 will still use quartz as it can't handle quickdraw.
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     1
#!/bin/sh
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     2
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     3
# sets VERSION to the value if RELEASE if there are any,
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     4
# otherwise it sets VERSION to revision number
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     5
if [ "$3" ]; then
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     6
VERSION="$3"
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     7
else
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     8
VERSION="$2"
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     9
fi
1061
35c487dcbecc (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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    11
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    12
# Generates Info.plist while applying $VERSION
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    13
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    14
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    15
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" 
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    16
\"http://www.apple.com/DTDs/Prop$
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    17
<plist version=\"1.0\">
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    18
<dict>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    19
        <key>CFBundleDevelopmentRegion</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    20
        <string>English</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    21
        <key>CFBundleDisplayName</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    22
        <string>Open Transport Tycoon</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    23
        <key>CFBundleExecutable</key>
35
54cf3d67fc45 (svn r36) -Fix MacOS makefile issues (Bjarni)
darkvater
parents: 0
diff changeset
    24
        <string>openttd</string>
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    25
        <key>CFBundleGetInfoString</key>
4530
8582c903c22c (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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    27
        <key>CFBundleIconFile</key>
35
54cf3d67fc45 (svn r36) -Fix MacOS makefile issues (Bjarni)
darkvater
parents: 0
diff changeset
    28
        <string>openttd.icns</string>
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    29
        <key>CFBundleIdentifier</key>
4530
8582c903c22c (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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    31
        <key>CFBundleInfoDictionaryVersion</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    32
        <string>6.0</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    33
        <key>CFBundleName</key>
2225
e60b20805e4d (svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
bjarni
parents: 1720
diff changeset
    34
        <string>OpenTTD</string>
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    35
        <key>CFBundlePackageType</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    36
        <string>APPL</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    37
        <key>CFBundleShortVersionString</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    38
        <string>$VERSION</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    39
        <key>CFBundleVersion</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    40
        <string>$VERSION</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    41
        <key>NSHumanReadableCopyright</key>
4530
8582c903c22c (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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    43
        <key>NSPrincipalClass</key>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    44
        <string>NSApplication</string>
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    45
</dict>
1720
b53cf8e5cd44 (svn r2224) -Fix: capital-correctness for OSX-dir-names
truelight
parents: 1694
diff changeset
    46
</plist>" > "$1"/Contents/Info.plist