From: oetiker Date: Sat, 27 Aug 2005 20:52:12 +0000 (+0000) Subject: update for new prefix setting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=221585020da5232c709c8008b9e469c4a0cf73a6;p=rrdtool-all.git update for new prefix setting git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@676 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/examples/piped-demo.pl.in b/program/examples/piped-demo.pl.in index 71d69e71..02e105c3 100755 --- a/program/examples/piped-demo.pl.in +++ b/program/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"; }