From 3e470708a6fdde8fddf5532890d6dceb99a0d5cc Mon Sep 17 00:00:00 2001 From: bjarni Date: Thu, 14 Apr 2005 20:42:30 +0000 Subject: (svn r2198) renamed MacOS to MacOSX where it was written wrong. Made myself MacOSX porter as well as coder --- os/macos/Open_Transport_Tycoon_Forum.webloc | 0 os/macos/Open_Transport_Tycoon_Homepage.webloc | 0 .../SourceForge_OpenTTD_project_homepage.webloc | 0 os/macos/openttd.icns | Bin 49800 -> 0 bytes os/macos/openttdmidi.java | 55 --------------------- os/macos/plistgen.sh | 46 ----------------- os/macos/track_starter | 2 - os/macosx/Open_Transport_Tycoon_Forum.webloc | 0 os/macosx/Open_Transport_Tycoon_Homepage.webloc | 0 .../SourceForge_OpenTTD_project_homepage.webloc | 0 os/macosx/openttd.icns | Bin 0 -> 49800 bytes os/macosx/openttdmidi.java | 55 +++++++++++++++++++++ os/macosx/plistgen.sh | 46 +++++++++++++++++ os/macosx/track_starter | 2 + 14 files changed, 103 insertions(+), 103 deletions(-) delete mode 100644 os/macos/Open_Transport_Tycoon_Forum.webloc delete mode 100644 os/macos/Open_Transport_Tycoon_Homepage.webloc delete mode 100644 os/macos/SourceForge_OpenTTD_project_homepage.webloc delete mode 100644 os/macos/openttd.icns delete mode 100644 os/macos/openttdmidi.java delete mode 100755 os/macos/plistgen.sh delete mode 100755 os/macos/track_starter create mode 100644 os/macosx/Open_Transport_Tycoon_Forum.webloc create mode 100644 os/macosx/Open_Transport_Tycoon_Homepage.webloc create mode 100644 os/macosx/SourceForge_OpenTTD_project_homepage.webloc create mode 100644 os/macosx/openttd.icns create mode 100644 os/macosx/openttdmidi.java create mode 100755 os/macosx/plistgen.sh create mode 100755 os/macosx/track_starter (limited to 'os') diff --git a/os/macos/Open_Transport_Tycoon_Forum.webloc b/os/macos/Open_Transport_Tycoon_Forum.webloc deleted file mode 100644 index e69de29bb..000000000 diff --git a/os/macos/Open_Transport_Tycoon_Homepage.webloc b/os/macos/Open_Transport_Tycoon_Homepage.webloc deleted file mode 100644 index e69de29bb..000000000 diff --git a/os/macos/SourceForge_OpenTTD_project_homepage.webloc b/os/macos/SourceForge_OpenTTD_project_homepage.webloc deleted file mode 100644 index e69de29bb..000000000 diff --git a/os/macos/openttd.icns b/os/macos/openttd.icns deleted file mode 100644 index 87fd15eae..000000000 Binary files a/os/macos/openttd.icns and /dev/null differ diff --git a/os/macos/openttdmidi.java b/os/macos/openttdmidi.java deleted file mode 100644 index fc4e0b5b8..000000000 --- a/os/macos/openttdmidi.java +++ /dev/null @@ -1,55 +0,0 @@ -// -// OpenTTDMidi.java -// OpenTTDMidi -// -// Created by Joshua King on Sun Apr 25 2004. -// Copyright (c) 2004 __MyCompanyName__. All rights reserved. -// -import java.io.*; -import java.util.*; -import javax.sound.midi.*; - -public class OpenTTDMidi { - - public static void main (String args[]) { - // Currently command line is the MIDI file - if (args.length == 1) { - Sequencer s2 = null; - - try { - s2 = MidiSystem.getSequencer(); - s2.open(); - } catch (MidiUnavailableException mue) { - System.exit(1); - } - - Sequence s = null; - - try { - s = MidiSystem.getSequence(new File(args[0])); - } catch (InvalidMidiDataException imde) { - System.exit(2); - } catch (IOException ioe) { - System.exit(3); - } - - try { - s2.setSequence(s); - s2.setMicrosecondPosition(0); - s2.start(); - for (long l = 0; l < (s.getMicrosecondLength() / 1000000); l++) { - try { - //System.out.print("."); - Thread.currentThread().sleep(1000); - } catch (InterruptedException ie) {} - } - System.out.println(); - } catch (InvalidMidiDataException imde) { - } - - s2.stop(); - s2.close(); - System.exit(0); - } - } -} diff --git a/os/macos/plistgen.sh b/os/macos/plistgen.sh deleted file mode 100755 index 0968f8dc7..000000000 --- a/os/macos/plistgen.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/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 " - - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - Open Transport Tycoon - CFBundleExecutable - openttd - CFBundleGetInfoString - $VERSION, Copyright 2004-$date The Open Transport Tycoon team - CFBundleIconFile - openttd.icns - CFBundleIdentifier - org.ludde-ottd.ludde-ottd - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ottd - CFBundlePackageType - APPL - CFBundleShortVersionString - $VERSION - CFBundleVersion - $VERSION - NSHumanReadableCopyright - Copyright 2004-$date The Open Transport Tycoon team - NSPrincipalClass - NSApplication - -" > "$1"/contents/Info.plist diff --git a/os/macos/track_starter b/os/macos/track_starter deleted file mode 100755 index 809491181..000000000 --- a/os/macos/track_starter +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -exec /usr/bin/java -cp OpenTTD.app/contents/macos OpenTTDMidi "$1" diff --git a/os/macosx/Open_Transport_Tycoon_Forum.webloc b/os/macosx/Open_Transport_Tycoon_Forum.webloc new file mode 100644 index 000000000..e69de29bb diff --git a/os/macosx/Open_Transport_Tycoon_Homepage.webloc b/os/macosx/Open_Transport_Tycoon_Homepage.webloc new file mode 100644 index 000000000..e69de29bb diff --git a/os/macosx/SourceForge_OpenTTD_project_homepage.webloc b/os/macosx/SourceForge_OpenTTD_project_homepage.webloc new file mode 100644 index 000000000..e69de29bb diff --git a/os/macosx/openttd.icns b/os/macosx/openttd.icns new file mode 100644 index 000000000..87fd15eae Binary files /dev/null and b/os/macosx/openttd.icns differ diff --git a/os/macosx/openttdmidi.java b/os/macosx/openttdmidi.java new file mode 100644 index 000000000..fc4e0b5b8 --- /dev/null +++ b/os/macosx/openttdmidi.java @@ -0,0 +1,55 @@ +// +// OpenTTDMidi.java +// OpenTTDMidi +// +// Created by Joshua King on Sun Apr 25 2004. +// Copyright (c) 2004 __MyCompanyName__. All rights reserved. +// +import java.io.*; +import java.util.*; +import javax.sound.midi.*; + +public class OpenTTDMidi { + + public static void main (String args[]) { + // Currently command line is the MIDI file + if (args.length == 1) { + Sequencer s2 = null; + + try { + s2 = MidiSystem.getSequencer(); + s2.open(); + } catch (MidiUnavailableException mue) { + System.exit(1); + } + + Sequence s = null; + + try { + s = MidiSystem.getSequence(new File(args[0])); + } catch (InvalidMidiDataException imde) { + System.exit(2); + } catch (IOException ioe) { + System.exit(3); + } + + try { + s2.setSequence(s); + s2.setMicrosecondPosition(0); + s2.start(); + for (long l = 0; l < (s.getMicrosecondLength() / 1000000); l++) { + try { + //System.out.print("."); + Thread.currentThread().sleep(1000); + } catch (InterruptedException ie) {} + } + System.out.println(); + } catch (InvalidMidiDataException imde) { + } + + s2.stop(); + s2.close(); + System.exit(0); + } + } +} 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 " + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + Open Transport Tycoon + CFBundleExecutable + openttd + CFBundleGetInfoString + $VERSION, Copyright 2004-$date The Open Transport Tycoon team + CFBundleIconFile + openttd.icns + CFBundleIdentifier + org.ludde-ottd.ludde-ottd + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ottd + CFBundlePackageType + APPL + CFBundleShortVersionString + $VERSION + CFBundleVersion + $VERSION + NSHumanReadableCopyright + Copyright 2004-$date The Open Transport Tycoon team + NSPrincipalClass + NSApplication + +" > "$1"/contents/Info.plist diff --git a/os/macosx/track_starter b/os/macosx/track_starter new file mode 100755 index 000000000..809491181 --- /dev/null +++ b/os/macosx/track_starter @@ -0,0 +1,2 @@ +#!/bin/bash +exec /usr/bin/java -cp OpenTTD.app/contents/macos OpenTTDMidi "$1" -- cgit v1.2.3-70-g09d2