summaryrefslogtreecommitdiff
blob: 56d7e10e6a7338b7622513bc5085c3a31c217236 (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
#!/bin/bash
# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
# Modifications, enhancements or bugs? Mail me.

INSTALL="GAMES_PREFIX_OPT//ut2003-demo"

case ${1} in
    "--results")
	pushd ${INSTALL}/Benchmark &> /dev/null
	./results.sh
	popd &> /dev/null
	;;
    "--bench")
	pushd ${INSTALL}/Benchmark &> /dev/null
	./benchmark
	popd &> /dev/null
	;;
    "--help")
	echo "Usage:"
	echo " ut2003-demo [--bench] || [--results]"
	echo " Optional parameters, only one at a time."
	echo "  --bench   : starts ut2003-demo in benchmark mode"
	echo "  --results : outputs the results of your last benchmark"
	;;
    *)
	pushd ${INSTALL} &> /dev/null
	./ut2003_demo
	popd &> /dev/null
	;;
esac