summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/urbanterror/install.sh
blob: 2cc98cd41b438743d4e6f14a92eb07db753f535e (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
#!/bin/sh

unzip -o UrbanTerror_41_FULL.zip

cd UrbanTerror/
chmod +x ioUrbanTerror.i386
chmod +x ioUrbanTerror.x86_64
cd ..

tar -xvf urbanterror-q3ut4-1.tar.gz
mv -f autoexec.cfg UrbanTerror/q3ut4/
mv -f pts1.dm_68 UrbanTerror/q3ut4/demos/

echo "#!/bin/sh
cd UrbanTerror/

case \$OS_ARCH in
	\"x86_64\" )
	./ioUrbanTerror.x86_64 \$@ 2>&1 | grep fps
	;;
	* )
	./ioUrbanTerror.i386 \$@ 2>&1 | grep fps
	;;
esac" > urbanterror
chmod +x urbanterror