ports/68670: [MAINTAINER UPDATE]: games/wargus - fix minor scripting mistake
Travis Poppe
tlp at LiquidX.org
Mon Jul 5 02:20:18 UTC 2004
>Number: 68670
>Category: ports
>Synopsis: [MAINTAINER UPDATE] games/wargus - fix minor scripting
>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: Mon Jul 05 02:20:18 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Travis Poppe
>Release:
>Organization:
>Environment:
>Description:
I was using -x in the wargus wrapper script when I should have been
using -d
Port revision should probably be bumped. I'll leave that up to the
committer.
>How-To-Repeat:
>Fix:
--- wargus.in.orig Sun Jul 4 20:12:54 2004
+++ wargus.in Sun Jul 4 20:13:07 2004
@@ -9,7 +9,7 @@
USERDIR=$HOME/.wargus
DATADIR=%%PREFIX%%/share/wargus/data.wc2
-if [ ! -x $DATADIR ]; then
+if [ ! -d $DATADIR ]; then
echo "Warcraft2 data not found in $DATADIR/"
echo ""
echo "Did you run build.sh yet?"
@@ -41,7 +41,7 @@
echo "For more information, please visit: http://wargus.sourceforge.net"
fi
-if [ -x $USERDIR ]; then
+if [ -d $USERDIR ]; then
echo "Warcraft2 data appears to be installed/linked to $USERDIR/"
echo ""
echo "Attempting to run Stratagus with Warcraft2 data"
@@ -51,7 +51,7 @@
exit
fi
-if [ -x $DATADIR ]; then
+if [ -d $DATADIR ]; then
mkdir $USERDIR
mkdir $USERDIR/data
ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data
>Release-Note:
>Audit-Trail:
>Unformatted:
mistake
More information about the freebsd-ports-bugs
mailing list