From 132001f3ea9093c0c9a86ea61b9b164758e21e24 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 24 Apr 2018 13:28:34 +1000 Subject: [PATCH] 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 --- tools/make-ptraccel-graphs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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