View | Details | Raw Unified | Return to bug 68670
Collapse All | Expand All

(-)wargus.in (-3 / +3 lines)
Lines 9-15 Link Here
9
USERDIR=$HOME/.wargus
9
USERDIR=$HOME/.wargus
10
DATADIR=%%PREFIX%%/share/wargus/data.wc2
10
DATADIR=%%PREFIX%%/share/wargus/data.wc2
11
11
12
if [ ! -x $DATADIR ]; then
12
if [ ! -d $DATADIR ]; then
13
	echo "Warcraft2 data not found in $DATADIR/"
13
	echo "Warcraft2 data not found in $DATADIR/"
14
	echo ""
14
	echo ""
15
	echo "Did you run build.sh yet?"
15
	echo "Did you run build.sh yet?"
Lines 41-47 Link Here
41
	echo "For more information, please visit: http://wargus.sourceforge.net"
41
	echo "For more information, please visit: http://wargus.sourceforge.net"
42
fi
42
fi
43
43
44
if [ -x $USERDIR ]; then
44
if [ -d $USERDIR ]; then
45
	echo "Warcraft2 data appears to be installed/linked to $USERDIR/"
45
	echo "Warcraft2 data appears to be installed/linked to $USERDIR/"
46
	echo ""
46
	echo ""
47
	echo "Attempting to run Stratagus with Warcraft2 data"
47
	echo "Attempting to run Stratagus with Warcraft2 data"
Lines 51-57 Link Here
51
	exit
51
	exit
52
fi
52
fi
53
53
54
if [ -x $DATADIR ]; then
54
if [ -d $DATADIR ]; then
55
	mkdir $USERDIR
55
	mkdir $USERDIR
56
	mkdir $USERDIR/data
56
	mkdir $USERDIR/data
57
	ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data
57
	ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data

Return to bug 68670