1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/emulators/gens/files/gens.in
Michael Nottebrock 629892cbb9 Add gens, a Sega Genesis/CD/32X emulator
PR:		ports/82576
Submitted by:	Travis Poppe <tlp@LiquidX.org>
2005-07-05 22:15:53 +00:00

27 lines
423 B
Bash

#!/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 $*