summarylogtreecommitdiffstats
path: root/tower-of-guns.sh
blob: 05a426690f3527426d1158717faa32bc670d1361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

DDIR="${HOME}/.TowerOfGuns"
BDIR="/opt/tower-of-guns/Binaries/Linux"

if [ ! -d ${DDIR} ]; then
    mkdir -p "${DDIR}/Binaries/Linux"
    ln -fs "${BDIR}/steam_appid.txt" "${DDIR}/Binaries/Linux/steam_appid.txt"
    ln -fs "${BDIR}/lib" "${DDIR}/Binaries/Linux/lib"
    ln -fs "/opt/tower-of-guns/UDKGame" "${DDIR}/UDKGame"
    ln -fs "/opt/tower-of-guns/Engine" "${DDIR}/Engine"
fi

cd "${DDIR}/Binaries/Linux"
exec "${BDIR}/UDKGame-Linux" $@