Date: Thu, 8 Jul 2004 17:36:19 -0600 From: Travis Poppe <tlp@LiquidX.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68836: [MAINTAINER UPDATE]: games/wargus - remove unnecessary wrapper code Message-ID: <20040708173619.279ac7f5@maya.liquidx.org> Resent-Message-ID: <200407082340.i68NeEwB004873@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040708173619.279ac7f5>