#!/bin/sh SRCPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )" if [ ! -f "$SRCPATH"/bin/worldspawn ]; then printf "Map editor is not present, please run build_editor.sh\n" exit fi cd "$SRCPATH"/bin if [[ -z "${NUCLIDE_GDB}" ]]; then ./worldspawn ../ $* else gdb --args ./worldspawn ../ $* fi