Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 20:17:55 -0600
From:      Travis Poppe <tlp@LiquidX.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68670: [MAINTAINER UPDATE]: games/wargus - fix minor scripting mistake
Message-ID:  <20040704201755.2d2f22a7@maya.liquidx.org>
Resent-Message-ID: <200407050220.i652KI5k064189@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040704201755.2d2f22a7>