mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix wrapper-script
PR: ports/68836 Submitted by: Travis Poppe (maintainer)
This commit is contained in:
parent
2fdda80c13
commit
86dbe05b9a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113254
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user