summaryrefslogtreecommitdiff
blob: 2ca29b8621763948107b6901ba63d886dbddb3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ ! -e ~/.tomenet/.gentoo ]; then
	LIBDIR="@LIBDIR@"
	[ -e ~/.tomenet ] || mkdir ~/.tomenet

	ln -s "${LIBDIR}"/game ~/.tomenet/game
	ln -s "${LIBDIR}"/text ~/.tomenet/text
	cp -R "${LIBDIR}"/user "${LIBDIR}"/scpt "${LIBDIR}"/xtra ~/.tomenet/
	[ -e ~/.tomenetrc ] || cp "${LIBDIR}"/.tomenetrc ~/.tomenetrc

	touch ~/.tomenet/.gentoo
fi

TOMENET_PATH="${HOME}/.tomenet"
export TOMENET_PATH
cd "${TOMENET_PATH}"
exec tomenet.bin "$@"