Template:PatchDiff/December 04, 2014 Patch/portal2.sh

21 21 if [ -z $GAMEEXE ]; then  22 22        if [ "$UNAME" == "Darwin" ]; then   23 23                GAMEEXE=portal2_osx   N/A 24        elif [ "$UNAME" == "Linux" ]; then   N/A 25                GAMEEXE=portal2_linux   24 26        fi   25 27 fi   26 28   …  31 33    32 34 STATUS=42   33 35 while [ $STATUS -eq 42 ]; do   34 N/A        if [ "${DEBUGGER}" == "gdb" ]; then   N/A 36        if [ "${GAME_DEBUGGER}" == "gdb" ]; then   35 37                ARGSFILE=$(mktemp $USER.portal2.gdb.XXXX)   36 38                echo run $@ > "$ARGSFILE"   37 N/A                ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} -x "$ARGSFILE"   N/A 39                echo show args >> "$ARGSFILE"   N/A 40                ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} -x "$ARGSFILE"   38 41                rm "$ARGSFILE"   39 42        else   40 N/A                ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"   N/A 43                ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"   41 44        fi   42 45        STATUS=$? 43 46 done