summarylogtreecommitdiffstats
path: root/tower-of-guns.sh
diff options
context:
space:
mode:
authorwenLiangcan2015-06-09 00:00:58 +0800
committerwenLiangcan2015-06-09 00:00:58 +0800
commit983802ac054d43e0af93aabbc838f2962855d31a (patch)
treece1814288f59dd2852e8aad6ab4b508ccc6ff4d6 /tower-of-guns.sh
downloadaur-983802ac054d43e0af93aabbc838f2962855d31a.tar.gz
tower-of-guns 1414520623-1.
Diffstat (limited to 'tower-of-guns.sh')
-rw-r--r--tower-of-guns.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tower-of-guns.sh b/tower-of-guns.sh
new file mode 100644
index 000000000000..05a426690f35
--- /dev/null
+++ b/tower-of-guns.sh
@@ -0,0 +1,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" $@