updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / starfarer / starfarer.sh
blobfef29b4d01dba64fcbf31d9212cfdae78bba593e
1 #!/bin/bash
2 [ ! -d ~/.starfarer ] && mkdir ~/.starfarer
3 [ ! -d ~/.starfarer/saves ] && mkdir ~/.starfarer/saves
4 [ ! -d ~/.starfarer/screenshots ] && mkdir ~/.starfarer/screenshots
5 [ ! -d ~/.starfarer/mods ] && mkdir ~/.starfarer/mods
7 for name in /usr/share/java/starfarer/*.jar ; do
8 CP=$CP:$name
9 done
11 cd /usr/share/starfarer
13 SAVEPATH=~/.starfarer/saves
14 MODPATH=~/.starfarer/mods
15 SCRPATH=~/.starfarer/screenshots
16 LOGPATH=~/.starfarer
18 export LD_LIBRARY_PATH="$JAVA_HOME/lib/$$ARCHITECTURE$$"
20 exec java -Djava.library.path=/usr/lib/starfarer -Xms256m -Xmx256m -cp $CP -Dcom.fs.starfarer.settings.paths.saves=$SAVEPATH -Dcom.fs.starfarer.settings.paths.screenshots=$SCRPATH -Dcom.fs.starfarer.settings.paths.mods=$MODPATH -Dcom.fs.starfarer.settings.paths.logs=$LOGPATH com.fs.starfarer.StarfarerLauncher
22 unset LD_LIBRARY_PATH