aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-06 00:34:22 +0800
committerpav <pav@FreeBSD.org>2004-07-06 00:34:22 +0800
commitca9a8bc1f2aed88da41ca6d5f032907ef2a8e79d (patch)
treec42255907c8faf4b40dbab673e83121ce838ce2d /games
parenta635b5a7161f3ec7df52f3aa196ca5ce5dd5cac6 (diff)
downloadfreebsd-ports-gnome-ca9a8bc1f2aed88da41ca6d5f032907ef2a8e79d.tar.gz
freebsd-ports-gnome-ca9a8bc1f2aed88da41ca6d5f032907ef2a8e79d.tar.zst
freebsd-ports-gnome-ca9a8bc1f2aed88da41ca6d5f032907ef2a8e79d.zip
- [ -d for directories
- Kill trailing whitespace PR: ports/68670 Submitted by: Travis Poppe <tlp@LiquidX.org> (maintainer)
Diffstat (limited to 'games')
-rw-r--r--games/wargus/Makefile1
-rw-r--r--games/wargus/files/wargus.in8
2 files changed, 5 insertions, 4 deletions
diff --git a/games/wargus/Makefile b/games/wargus/Makefile
index 24870de74d3c..a27384e1005f 100644
--- a/games/wargus/Makefile
+++ b/games/wargus/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wargus
PORTVERSION= 2.1
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/games/wargus/files/wargus.in b/games/wargus/files/wargus.in
index d76fbebc0603..b7bcaeb913d1 100644
--- a/games/wargus/files/wargus.in
+++ b/games/wargus/files/wargus.in
@@ -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?"
@@ -23,7 +23,7 @@ if [ ! -x $DATADIR ]; then
echo "Stratagus engine from the following CDs:"
echo ""
echo "* US Expansion (both MAC/DOS)"
- echo "* US Original (both MAC/DOS)"
+ echo "* US Original (both MAC/DOS)"
echo "* UK/Australian Original"
echo "* UK/Australian Expansion"
echo "* German Original"
@@ -41,7 +41,7 @@ if [ ! -x $DATADIR ]; then
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 @@ if [ -x $USERDIR ]; then
exit
fi
-if [ -x $DATADIR ]; then
+if [ -d $DATADIR ]; then
mkdir $USERDIR
mkdir $USERDIR/data
ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data