aboutsummaryrefslogtreecommitdiff
path: root/emulators/gens/files/gens.in
blob: e4600cf75700ab5c377a66a84ba7930b1b199d5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# gens - gens 2.12a wrapper script
#
# 2005 Travis Poppe

USERDIR=$HOME/.gens

if [ -d $USERDIR ]; then
	echo "gens working directory appears to be $USERDIR/"
	echo ""

	cd $USERDIR
	./gens $*
	exit
fi

mkdir $USERDIR
mkdir $USERDIR/resource
ln -s %%PREFIX%%/share/gens/gens $USERDIR/gens
ln -s %%PREFIX%%/share/gens/resource/* $USERDIR/resource

echo "Installed gens to $USERDIR/"
echo ""

cd $USERDIR
./gens $*