summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/urbanterror/install.sh
blob: caab4d043b540d44e23d64af4876d8409402448f (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
30
31
32
33
34
#!/bin/sh

unzip -o UrbanTerror_41_FULL.zip

mv UrbanTerror/ UrbanTerror_/
cd UrbanTerror_/
chmod +x ioUrbanTerror.i386
chmod +x ioUrbanTerror.x86_64
chmod +x ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub
cd ..

tar -xvf urbanterror-q3ut4-2.tar.gz
mv -f autoexec.cfg UrbanTerror_/q3ut4/
mv -f pts1.dm_68 UrbanTerror_/q3ut4/demos/

echo "#!/bin/sh
cd UrbanTerror_/

if [ \$OS_TYPE = \"MacOSX\" ]
then
	mkdir -p ~/Library/Application\ Support/Quake3
	./ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub \$@ > \$LOG_FILE 2>&1
else
	case \$OS_ARCH in
		\"x86_64\" )
			./ioUrbanTerror.x86_64 \$@ > \$LOG_FILE 2>&1
			;;
		* )
			./ioUrbanTerror.i386 \$@ > \$LOG_FILE 2>&1
			;;
	esac
fi
cat \$LOG_FILE | grep fps" > urbanterror
chmod +x urbanterror