summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/urbanterror/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pts/test-resources/urbanterror/install.sh')
-rwxr-xr-xpts/test-resources/urbanterror/install.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/pts/test-resources/urbanterror/install.sh b/pts/test-resources/urbanterror/install.sh
new file mode 100755
index 0000000..2cc98cd
--- /dev/null
+++ b/pts/test-resources/urbanterror/install.sh
@@ -0,0 +1,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