updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / wok / scriptfile_wok
blob2b1498c80768a48a89159b77914729c4143682b6
1 #!/bin/sh
3 GAMEDIR="/usr/share/wok"
4 STARTDIR="wok"
5 EXE="./wok"
7 mkdir -p "${HOME}/.${STARTDIR}"
8 cd "${HOME}/.${STARTDIR}"
9 mkdir -p "replay"
11 for f in `find "${GAMEDIR}" -maxdepth 1 -mindepth 1 -printf '%f '` ; do
12 [ -e "${f}" ] && continue
13 ln -s "${GAMEDIR}/${f}" "${f}" >& /dev/null
14 chmod +x "${HOME}/.${STARTDIR}/wok"
15 done
17 exec "${EXE}" "$@"