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

tar -xvf pts-warsow-1.tar.gz
unzip -o warsow_0.42_unified.zip
cp -f pts-warsow-04.wd10 warsow_0.42_unified/basewsw/demos
cp -f pts-warsow.cfg warsow_0.42_unified/basewsw/
cd warsow_0.42_unified/
chmod +x warsow.x86_64
chmod +x warsow.i386
cd ..

echo "#!/bin/sh
rm -f .warsow/basewsw/1.log
cd warsow_0.42_unified/
case \$OS_ARCH in
	\"x86_64\" )
	./warsow.x86_64 \$@ > \$LOG_FILE 2>&1
	;;
	* )
	./warsow.i386 \$@ > \$LOG_FILE 2>&1
	;;
esac
cat \$LOG_FILE | grep seconds" > warsow
chmod +x warsow