ports/68836: [MAINTAINER UPDATE]: games/wargus - remove unnecessary wrapper code

Travis Poppe tlp at LiquidX.org
Thu Jul 8 23:40:15 UTC 2004


>Number:         68836
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] games/wargus - remove unnecessary wrapper code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 08 23:40:14 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Travis Poppe
>Release:        
>Organization:
>Environment:
>Description:
My wrapper script assumed the stratagus engine may have needed to modify 
the data directory (save games, etc). So we created a ~/.wargus directory 
and made links to the actual data. This is not required!!

Port revision should be bumped.
>How-To-Repeat:
>Fix:
--- wargus.in.orig	Thu Jul  8 17:22:26 2004
+++ wargus.in	Thu Jul  8 17:25:18 2004
@@ -6,7 +6,6 @@
 #
 # 2004 Travis Poppe <tlp at LiquidX.org>
 
-USERDIR=$HOME/.wargus
 DATADIR=%%PREFIX%%/share/wargus/data.wc2
 
 if [ ! -d $DATADIR ]; then
@@ -39,28 +38,14 @@
 	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
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list