summaryrefslogtreecommitdiff
path: root/games/majesty-demo/files/wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'games/majesty-demo/files/wrapper.sh')
-rw-r--r--games/majesty-demo/files/wrapper.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/majesty-demo/files/wrapper.sh b/games/majesty-demo/files/wrapper.sh
new file mode 100644
index 00000000000..c00bdd23205
--- /dev/null
+++ b/games/majesty-demo/files/wrapper.sh
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+# $NetBSD: wrapper.sh,v 1.1.1.1 2003/06/19 16:44:07 wiz Exp $
+# Simple wrapper for lgp's @@BINNAME@@
+
+# Linux binary calls mkdir for this with a trailing '/'
+if [ ! -d $HOME/.lgp ];then
+ mkdir $HOME/.lgp
+fi
+if [ ! -d $HOME/.lgp/maj_demo ];then
+ mkdir $HOME/.lgp/maj_demo
+fi
+cd @@LIBDIR@@
+exec ./@@BINNAME@@ "$@"