]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
benchmark fixes
authorRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 19:00:37 +0000 (20:00 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 19:00:37 +0000 (20:00 +0100)
misc/tools/the-big-benchmark.bat
misc/tools/the-big-benchmark.sh

index 93e4fc60a150f26ec5ff9678577f19232b4c5638..06cfa5e48e60da27bc67e15879f6cb994ee9d72a 100644 (file)
@@ -1,5 +1,6 @@
 @echo off\r
 \r
+cd %~dp0\r
 cd ..\..\r
 \r
 echo The Big Benchmark\r
index 4f85c391f1154759d10c275f36d20c0e41a04a7f..3b26a044257981004b31a948ef7f43fced0b6b21 100755 (executable)
@@ -2,6 +2,9 @@
 
 set -e
 
+if [ -d "${0%/*}" ]; then
+       cd "${0%/*}"
+fi
 cd ../..
 
 echo "The Big Benchmark"