#!/bin/sh

cd "%%DOOMDIR%%" || exit 1

if [ -n "$LD_LIBRARY_PATH" ]; then
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:."
else
    export LD_LIBRARY_PATH="."
fi

exec ./doom.x86 "$@"
