Skip to content

Commit

Permalink
Mac: Client/server debugging scripts
Browse files Browse the repository at this point in the history
Mac OS X scripts for starting a dedicated server or client
that automatically connects to localhost.
  • Loading branch information
skyjake committed Nov 19, 2011
1 parent 5bd6d8f commit 686869e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doomsday/engine/scripts/mac/cl-start.sh
@@ -0,0 +1,23 @@
#!/bin/sh
RUNDIR=`pwd`/client-runtime
mkdir -p $RUNDIR

if [ "$1" == "doom" ]
then
commonstart.sh jDoom Doom -userdir $RUNDIR -connect localhost
fi

if [ "$1" == "doom2" ]
then
commonstart.sh jDoom Doom2 -userdir $RUNDIR -connect localhost
fi

if [ "$1" == "heretic" ]
then
commonstart.sh jHeretic Heretic -userdir $RUNDIR -connect localhost
fi

if [ "$1" == "hexen" ]
then
commonstart.sh jHexen Hexen -userdir $RUNDIR -connect localhost
fi
13 changes: 13 additions & 0 deletions doomsday/engine/scripts/mac/commonstart.sh
@@ -0,0 +1,13 @@
#!/bin/sh
IWADDIR="/Users/jaakko/Dropbox/IWADs"
CFGDIR="/Users/jaakko"

# Use Guard Malloc for debugging.
export DYLD_INSERT_LIBRARIES="/usr/lib/libgmalloc.dylib"
DEBUGGER="gdb --args"

GAME=$1
IWAD=$2
ROPTS="-file ../../doomsday.pk3 ../../${GAME}.pk3"

$DEBUGGER Doomsday.app/Contents/MacOS/Doomsday -appdir . -game ${GAME}.bundle -iwad $IWADDIR/${IWAD}.wad -basedir Doomsday.app/Contents/Resources -wh 800 600 -wnd -nomouse -nomusic $ROPTS -cparse $CFGDIR/util.cfg $3 $4 $5 $6 $7 $8 $9
23 changes: 23 additions & 0 deletions doomsday/engine/scripts/mac/sv-start.sh
@@ -0,0 +1,23 @@
#!/bin/sh
RUNDIR=`pwd`/server-runtime
mkdir -p $RUNDIR

if [ "$1" == "doom" ]
then
commonstart.sh jDoom Doom -server -dedicated -userdir $RUNDIR
fi

if [ "$1" == "doom2" ]
then
commonstart.sh jDoom Doom2 -server -dedicated -userdir $RUNDIR
fi

if [ "$1" == "heretic" ]
then
commonstart.sh jHeretic Heretic -server -dedicated -userdir $RUNDIR
fi

if [ "$1" == "hexen" ]
then
commonstart.sh jHexen Hexen -server -dedicated -userdir $RUNDIR
fi

0 comments on commit 686869e

Please sign in to comment.