aboutsummaryrefslogtreecommitdiff
path: root/games/wargus
diff options
context:
space:
mode:
Diffstat (limited to 'games/wargus')
-rw-r--r--games/wargus/files/wargus.in19
1 files changed, 2 insertions, 17 deletions
diff --git a/games/wargus/files/wargus.in b/games/wargus/files/wargus.in
index b7bcaeb913d1..287050df82c9 100644
--- a/games/wargus/files/wargus.in
+++ b/games/wargus/files/wargus.in
@@ -6,7 +6,6 @@
#
# 2004 Travis Poppe <tlp@LiquidX.org>
-USERDIR=$HOME/.wargus
DATADIR=%%PREFIX%%/share/wargus/data.wc2
if [ ! -d $DATADIR ]; then
@@ -39,28 +38,14 @@ if [ ! -d $DATADIR ]; then
echo "user you intend to play the game with."
echo ""
echo "For more information, please visit: http://wargus.sourceforge.net"
-fi
-
-if [ -d $USERDIR ]; then
- echo "Warcraft2 data appears to be installed/linked to $USERDIR/"
- echo ""
- echo "Attempting to run Stratagus with Warcraft2 data"
- echo ""
- cd $USERDIR
- stratagus -d $USERDIR/data $*
exit
fi
if [ -d $DATADIR ]; then
- mkdir $USERDIR
- mkdir $USERDIR/data
- ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data
-
- echo "Installed/linked Warcraft2 data to $USERDIR/"
+ echo "Warcraft2 data found in $DATADIR/"
echo ""
echo "Attempting to run Stratagus with Warcraft2 data"
echo ""
- cd $USERDIR
- stratagus -d $USERDIR/data $*
+ stratagus -d $DATADIR $*
exit
fi