aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-07-09 15:29:31 +0800
committervs <vs@FreeBSD.org>2004-07-09 15:29:31 +0800
commitd8756b8ef37916830098484d8e9fc3e04ad2c05a (patch)
tree0e497f8a5007bb0f58f443a1c02c7ffcdc1ea369 /games
parent9633002445879aef572a81714523374668941226 (diff)
downloadfreebsd-ports-gnome-d8756b8ef37916830098484d8e9fc3e04ad2c05a.tar.gz
freebsd-ports-gnome-d8756b8ef37916830098484d8e9fc3e04ad2c05a.tar.zst
freebsd-ports-gnome-d8756b8ef37916830098484d8e9fc3e04ad2c05a.zip
Fix wrapper-script
PR: ports/68836 Submitted by: Travis Poppe (maintainer)
Diffstat (limited to 'games')
-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