Files
@ r11371:4a7632225c6c
Branch filter:
Location: cpp/openttd-patchpack/source/os/macosx/plistgen.sh - annotation
r11371:4a7632225c6c
1.5 KiB
application/x-sh
(svn r15726) -Codechange: unify coding style for const pointers
r1694:bc9f40673fbc r1694:bc9f40673fbc r10729:809061d9ab58 r10729:809061d9ab58 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r8630:22c93c67ec35 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r4530:f57e9ef4ff45 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r4530:f57e9ef4ff45 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r2225:16f8f81c0863 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r4530:f57e9ef4ff45 r1694:bc9f40673fbc r1694:bc9f40673fbc r1694:bc9f40673fbc r1720:45ad96021079 | #!/bin/sh
# $Id$
# 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
date=`date +%Y`
# 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>OpenTTD</string>
<key>CFBundleExecutable</key>
<string>openttd</string>
<key>CFBundleGetInfoString</key>
<string>$VERSION, Copyright 2004-$date The OpenTTD team</string>
<key>CFBundleIconFile</key>
<string>openttd.icns</string>
<key>CFBundleIdentifier</key>
<string>org.openttd.openttd</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>OpenTTD</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$VERSION</string>
<key>CFBundleVersion</key>
<string>$VERSION</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright 2004-$date The OpenTTD team</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>" > "$1"/Contents/Info.plist
|