summarylogtreecommitdiffstats
path: root/tremded.sh
blob: 8b59447267892fb4092ec6c6d08f1670ca9c4bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

[ -f /etc/tremdedrc ] && . /etc/tremdedrc
[ -f "$HOME/.tremdedrc" ] && . "$HOME/.tremdedrc"

if [ ! -r "$HOME/.tremulous/base/vm/game.qvm" ]; then
	echo "Cannot find game.qvm -- linking to installed version."
	if [ ! -d "$HOME/.tremulous/base/vm" ]; then
		mkdir -p "$HOME/.tremulous/base/vm/" || exit 1
	fi
	ln -s /opt/tremulous/game.qvm "$HOME/.tremulous/base/vm/game.qvm" || exit 1
fi

cd /opt/tremulous/
./tremded.EXT_REPLACE "$TREM_ARGS" "$@"