From 7d29a7dca29929f5523f406ac5880cf2986c4f8b Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 27 Aug 2005 20:52:12 +0000 Subject: [PATCH] update for new prefix setting git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@676 a5681a0c-68f1-0310-ab6d-d61299d08faa --- examples/piped-demo.pl.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/piped-demo.pl.in b/examples/piped-demo.pl.in index 71d69e7..02e105c 100755 --- a/examples/piped-demo.pl.in +++ b/examples/piped-demo.pl.in @@ -16,10 +16,12 @@ $SVG = "piped-demo.svg"; $PNG = "piped-demo.png"; # some magic to find the correct rrdtol executable +$prefix="@prefix@"; + if ( -x "@exec_prefix@/bin/rrdtool") { RRDp::start "@exec_prefix@/bin/rrdtool"; -} elsif ( -x "../bin/rrdtool") { - RRDp::start "../bin/rrdtool"; +} elsif ( -x "../../bin/rrdtool") { + RRDp::start "../../bin/rrdtool"; } else { RRDp::start "../src/rrdtool"; } -- 2.30.2