aboutsummaryrefslogtreecommitdiffstats
path: root/games/wolf3d/files/wolf3d.in
blob: 28e026ff93dc30807baf796ac067f15472a632fb (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
#!/bin/sh
# wolf3d - wolf3d-20011028 wrapper script
#
# 2004 Travis Poppe

USERDIR=$HOME/.wolf3d

if [ -d $USERDIR ]; then
    echo "wolf3d appears to be installed to $USERDIR/"
    echo ""
    echo "Basic options:"
    echo ""
    echo "-nowait           Skips introduction"
    echo "-nojoy            Disables joystick"
    echo "-nomouse          Disables mouse"
    echo "-x2               Increases screen size by x2"
    echo "-x3               Increases screen size by x3"
    echo "-fullscreen       Enables fullscreen mode"
    echo "-demotest         Starts wolf3d in demonstration mode"
    echo "-version          Reports game version"
    echo ""

    cd $USERDIR
    ./sdlwolf3d $*
    exit
fi

mkdir $USERDIR
ln -s %%PREFIX%%/libexec/wolf3d/* $USERDIR

echo "Installed wolf3d to $USERDIR/"
echo ""
echo "Basic options:"
echo ""
echo "-nowait           Skips introduction"
echo "-nojoy            Disables joystick"
echo "-nomouse          Disables mouse"
echo "-x2               Increases screen size by x2"
echo "-x3               Increases screen size by x3"
echo "-fullscreen       Enables fullscreen mode"
echo "-demotest         Starts wolf3d in demonstration mode"
echo "-version          Reports game version"
echo ""

cd $USERDIR
./sdlwolf3d $*