summarylogtreecommitdiffstats
path: root/xump.sh
blob: d17668e67b6211b815f7601f685b65c699a48cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# launcher for retroguru games by carstene1ns 2013-2014
#

# get game from script name
game=`basename $0`

# create jail folder
mkdir -p "$HOME"/.$game

# link data folder, if needed
if [ ! -L "$HOME"/.$game/data ]; then
  ln -s /usr/share/$game/data "$HOME"/.$game/data
fi

# change to game dir and launch
cd "$HOME"/.$game && exec /usr/lib/$game/$game "$@"

# eof