6f85252001-02-02Fredrik Noring #!/bin/sh #
0917d32013-03-04Anders Johansson # $Id$
6f85252001-02-02Fredrik Noring  # Can be set with '--config-dir=DIR' DIR=configurations
acbbec2001-09-13Fredrik Noring # Breaks on linux when using symlinks.
4f10062003-07-11Jonas Wallden dn="`dirname "$0"`"
acbbec2001-09-13Fredrik Noring case "$dn" in ""|".") ;; *) if [ ! "$dn" = "`pwd`" ] then
bdf74c2001-10-19Henrik Grubbström (Grubba)  cd "$dn"
acbbec2001-09-13Fredrik Noring  fi ;; esac
6f85252001-02-02Fredrik Noring parse_args() { while [ ! c"$1" = "c" ] do case "$1" in --config-dir=*) DIR=`echo "$1" | sed -e 's/--config-dir=//'` FILES=`echo "$1" | sed -e's/--config-dir=//' -e's/\.//g' -e's./..g' -e 's.-..g'` ;; esac shift done } if [ ! c"$ROXEN_ARGS" = "c" ] then parse_args $ROXEN_ARGS fi parse_args "$@" SERVER_VER="$DIR/server_version" if [ -f "$SERVER_VER" ] then SERVER_DIR=`cat "$SERVER_VER"` else SERVER_DIR=server fi cd "$SERVER_DIR" && exec ./start "$@"