diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-04-24 13:28:34 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-04-26 14:02:18 +1000 |
commit | 132001f3ea9093c0c9a86ea61b9b164758e21e24 (patch) | |
tree | 095296d2a744edc6285eb94b0e4aefbd34975c87 | |
parent | 66687902d01a01f844bf9039150f22e7c10850ef (diff) |
tools: fix the script to make ptraccel graphs for meson's builddir
Partial fix only because we can't guess the build dir, but at least it doesn't
complain about the missing script now. And no-one really needs to run this
anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-x | tools/make-ptraccel-graphs.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/make-ptraccel-graphs.sh b/tools/make-ptraccel-graphs.sh index 870ea925..b96f9e56 100755 --- a/tools/make-ptraccel-graphs.sh +++ b/tools/make-ptraccel-graphs.sh @@ -1,8 +1,13 @@ #!/bin/bash -tool=`dirname $0`/ptraccel-debug +tool=`dirname $0`/../build/ptraccel-debug gnuplot=/usr/bin/gnuplot +if [[ -e '$tool' ]]; then + echo "Unable to find $tool" + exit 1 +fi + outfile="ptraccel-linear" for speed in -1 -0.75 -0.5 -0.25 0 0.5 1; do $tool --mode=accel --dpi=1000 --filter=linear --speed=$speed > $outfile-$speed.gnuplot |