aboutsummaryrefslogtreecommitdiff
path: root/games/wargus
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-07-09 07:29:31 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-07-09 07:29:31 +0000
commit86dbe05b9a5719a7c7775ca32738691ef2290580 (patch)
tree9ebaf37cd84dd81de79b2af0a723d312a04bf021 /games/wargus
parent2fdda80c1357046294b65ba36547444941f0bb05 (diff)
downloadports-86dbe05b9a5719a7c7775ca32738691ef2290580.tar.gz
ports-86dbe05b9a5719a7c7775ca32738691ef2290580.zip
Fix wrapper-script
PR: ports/68836 Submitted by: Travis Poppe (maintainer)
Notes
Notes: svn path=/head/; revision=113254
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