aboutsummaryrefslogtreecommitdiff
path: root/emulators/gens/files/gens.in
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gens/files/gens.in')
-rw-r--r--emulators/gens/files/gens.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/emulators/gens/files/gens.in b/emulators/gens/files/gens.in
new file mode 100644
index 000000000000..e4600cf75700
--- /dev/null
+++ b/emulators/gens/files/gens.in
@@ -0,0 +1,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 $*