aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-05 16:34:22 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-05 16:34:22 +0000
commite369e064f29d6d63d13b08940a43fbcc65740a74 (patch)
tree1ca43851977c6a1a363c7d7d90a6632234aa80be
parent1a7801a6e9a73213088e90d6959946d70a52ff90 (diff)
downloadports-e369e064f29d6d63d13b08940a43fbcc65740a74.tar.gz
ports-e369e064f29d6d63d13b08940a43fbcc65740a74.zip
- [ -d for directories
- Kill trailing whitespace PR: ports/68670 Submitted by: Travis Poppe <tlp@LiquidX.org> (maintainer)
Notes
Notes: svn path=/head/; revision=112968
-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