aboutsummaryrefslogtreecommitdiffstats
path: root/games/wargus/files/wargus.in
blob: 287050df82c966aa2a74600066ed7e1b6234d7e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
# wargus - wargus/stratagus wrapper script
#
# Note: If you have noticed any problems with this script or my port, please
# let me know as soon as possible!
#
# 2004 Travis Poppe <tlp@LiquidX.org>

DATADIR=%%PREFIX%%/share/wargus/data.wc2

if [ ! -d $DATADIR ]; then
    echo "Warcraft2 data not found in $DATADIR/"
    echo ""
    echo "Did you run build.sh yet?"
    echo ""
    echo "Giving you instructions in 5 seconds..."
    sleep 5
    echo ""
    echo "The Wargus tool has been installed to %%PREFIX%%/share/wargus/"
    echo ""
    echo "You can now use this tool to extract Warcraft2 data for use with the"
    echo "Stratagus engine from the following CDs:"
    echo ""
    echo "* US Expansion (both MAC/DOS)"
    echo "* US Original (both MAC/DOS)"
    echo "* UK/Australian Original"
    echo "* UK/Australian Expansion"
    echo "* German Original"
    echo "* German Expansion"
    echo "* Spanish Original"
    echo ""
    echo "If you have one of the above CDs mounted on /cdrom, su to root and change to"
    echo "the %%PREFIX%%/share/wargus/ directory and try executing:"
    echo ""
    echo "./build.sh -p /cdrom"
    echo ""
    echo "After your Warcraft2 data has been successfully extracted, run 'wargus' as the"
    echo "user you intend to play the game with."
    echo ""
    echo "For more information, please visit: http://wargus.sourceforge.net"
    exit
fi

if [ -d $DATADIR ]; then
    echo "Warcraft2 data found in $DATADIR/"
    echo ""
    echo "Attempting to run Stratagus with Warcraft2 data"
    echo ""
    stratagus -d $DATADIR $*
    exit
fi