Code

update for new prefix setting
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 27 Aug 2005 20:52:12 +0000 (20:52 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 27 Aug 2005 20:52:12 +0000 (20:52 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@676 a5681a0c-68f1-0310-ab6d-d61299d08faa

examples/piped-demo.pl.in

index 71d69e7135cb93f33da20b8ec97e67eeb24f6482..02e105c32d8a4cb1087e3fa6debaa65396f66250 100755 (executable)
@@ -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";
 }