diff options
author | bjarni <bjarni@openttd.org> | 2005-04-14 20:42:30 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-04-14 20:42:30 +0000 |
commit | 3e470708a6fdde8fddf5532890d6dceb99a0d5cc (patch) | |
tree | 92b685742435caea3a5e7e003dff99a79fc20dca /os/macosx/plistgen.sh | |
parent | 5572a92c5872fcda493ddbac16a8a6d4699054b6 (diff) | |
download | openttd-3e470708a6fdde8fddf5532890d6dceb99a0d5cc.tar.xz |
(svn r2198) renamed MacOS to MacOSX where it was written wrong. Made myself MacOSX porter as well as coder
Diffstat (limited to 'os/macosx/plistgen.sh')
-rwxr-xr-x | os/macosx/plistgen.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/os/macosx/plistgen.sh b/os/macosx/plistgen.sh new file mode 100755 index 000000000..0968f8dc7 --- /dev/null +++ b/os/macosx/plistgen.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +# 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>Open Transport Tycoon</string> + <key>CFBundleExecutable</key> + <string>openttd</string> + <key>CFBundleGetInfoString</key> + <string>$VERSION, Copyright 2004-$date The Open Transport Tycoon team</string> + <key>CFBundleIconFile</key> + <string>openttd.icns</string> + <key>CFBundleIdentifier</key> + <string>org.ludde-ottd.ludde-ottd</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>ottd</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 Open Transport Tycoon team</string> + <key>NSPrincipalClass</key> + <string>NSApplication</string> +</dict> +</plist>" > "$1"/contents/Info.plist |