From: oetiker Date: Sat, 27 Aug 2005 20:52:12 +0000 (+0000) Subject: update for new prefix setting X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7d29a7dca29929f5523f406ac5880cf2986c4f8b;p=rrdtool.git update for new prefix setting git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@676 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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"; }