]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
hide errors of "del"
authorRudolf Polzer <divverent@alientrap.org>
Sat, 28 Jan 2012 16:56:16 +0000 (17:56 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 28 Jan 2012 16:56:16 +0000 (17:56 +0100)
misc/tools/the-big-benchmark/the-big-benchmark.bat

index 3b78845ba0f3d153666697729dfe160c535300ba..e853a6831fb1964299fbae21dbc582b47266bd0e 100644 (file)
@@ -23,12 +23,12 @@ set xonotic=xonotic.exe
 goto postarg\r
 :postarg\r
 \r
-del data\the-big-benchmark.log\r
-del data\benchmark.log\r
-del data\engine.log\r
+if exist data\the-big-benchmark.log del data\the-big-benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+if exist data\engine.log del data\engine.log\r
 set p=+developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -36,7 +36,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -44,7 +44,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -52,7 +52,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -60,7 +60,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -68,7 +68,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -76,7 +76,7 @@ if not errorlevel 1 goto done
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data\benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
@@ -86,8 +86,8 @@ type data\benchmark.log >> data\the-big-benchmark.log
 \r
 :done\r
 \r
-del data\benchmark.log\r
-del data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+if exist data\engine.log del data\engine.log\r
 \r
 if exist data\the-big-benchmark.log goto logisgood\r
 echo.\r