summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/quake4/install.sh
blob: 23430f1cd1a129eea36cb001be0b2ceea9a57cfb (plain)
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
#!/bin/sh

chmod +x quake4-linux-1.4.2.x86.run

./quake4-linux-1.4.2.x86.run --noexec --target .
chmod +x bin/Linux/x86/quake4.x86

echo "#!/bin/sh
./bin/Linux/x86/quake4.x86 \$@ > \$LOG_FILE 2>&1
cat \$LOG_FILE | grep fps" > quake4
chmod +x quake4

tar -xvf quake4-pts-demo-1.tar.gz
mkdir q4base/demos
mv -f pts.demo q4base/demos/pts.demo

if [ -f quake4-game-files.tar ]
  then
     tar -k -C $1/q4base -xvf $1/quake4-game-files.tar
  else
     echo "Quake 4 Game Files (*.pk4) Must Be Copied Into $1/q4base"
fi
if [ -f quake4-key.tar ]
  then
     tar -xvf quake4-key.tar
  else
     echo "Copy Your Game Key File To $HOME/.quake4/q4base/quake4key (If Not Already There)"
fi