File: triplea_mac_os_x.sh

package info (click to toggle)
triplea 1.5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 153,264 kB
  • sloc: java: 144,364; xml: 37,101; makefile: 28; sh: 22
file content (15 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if ! java -version >& /dev/null
then
echo "Could not find Java."
echo "You must have Java installed and in your path."
exit
fi

relativePathToGame=`dirname $0`
cd $relativePathToGame

export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/:$PATH
export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/:$PATH
java -Xmx512m -cp bin/patch.jar:bin/triplea.jar -Dapple.laf.useScreenMenuBar=true -Xdock:name="TripleA" -Xdock:icon="./icons/triplea_icon.png" games.strategy.engine.framework.GameRunner