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>
This commit is contained in:
Peter Hutterer 2018-04-24 13:28:34 +10:00
parent 66687902d0
commit 132001f3ea

View file

@ -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