Zionetrix::Git
Repositories
Help
Report an Issue
ps3mediaserver
Code
Commits
Branches
Tags
Search
Tree:
3aa8f5b
Branches
Tags
master
1.90.1-1
1.90.1-2
ps3mediaserver
PMS.sh
Initial commit
root
commited
3aa8f5b
at 2014-05-05 22:57:02
PMS.sh
Blame
History
Raw
#!/bin/sh CMD=`readlink -f $0` DIRNAME=`dirname "$CMD"` # OS specific support (must be 'true' or 'false'). cygwin=false; case "`uname`" in CYGWIN*) cygwin=true ;; esac # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$PMS_HOME" ] && PMS_HOME=`cygpath --unix "$PMS_HOME"` [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` fi # Setup PMS_HOME if [ "x$PMS_HOME" = "x" ]; then PMS_HOME="$DIRNAME" fi export PMS_HOME # XXX: always cd to the working dir: https://code.google.com/p/ps3mediaserver/issues/detail?id=730 cd "$PMS_HOME" # Setup the JVM if [ "x$JAVA" = "x" ]; then if [ "x$JAVA_HOME" != "x" ]; then JAVA="$JAVA_HOME/bin/java" else JAVA="java" fi fi # Setup the classpath # since we always cd to the working dir, these a) can be unqualified and b) *must* # be unqualified: https://code.google.com/p/ps3mediaserver/issues/detail?id=1122 PMS_JARS="update.jar:pms.jar" # For Cygwin, switch paths to Windows format before running java if $cygwin; then PMS_HOME=`cygpath --path --windows "$PMS_HOME"` JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` fi # Configure fontconfig (used by our build of ffmpeg) if [ "x$FONTCONFIG_PATH" = "x" ]; then FONTCONFIG_PATH=/etc/fonts export FONTCONFIG_PATH fi if [ "x$FONTCONFIG_FILE" = "x" ]; then FONTCONFIG_FILE=/etc/fonts/fonts.conf export FONTCONFIG_FILE fi # Execute the JVM exec "$JAVA" $JAVA_OPTS -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath "$PMS_JARS" net.pms.PMS "$@"