From 3ca29e8ecccfc346b41ba9fb543ac7b096c25b3b Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 17 Sep 2006 20:46:17 +0000 Subject: [PATCH] fix generation of cgi-demo.cgi -- Peter Breitenlohner peb mppmu.mpg.de git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@895 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 3 +-- program/examples/Makefile.am | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/program/configure.ac b/program/configure.ac index a6cd1e6f..2d4a2425 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -556,7 +556,6 @@ AC_CONFIG_FILES([examples/piped-demo.pl]) AC_CONFIG_FILES([examples/stripes.pl]) AC_CONFIG_FILES([examples/bigtops.pl]) AC_CONFIG_FILES([examples/minmax.pl]) -AC_CONFIG_FILES([examples/cgi-demo.cgi]) AC_CONFIG_FILES([examples/4charts.pl]) AC_CONFIG_FILES([examples/Makefile]) AC_CONFIG_FILES([doc/Makefile]) @@ -567,7 +566,7 @@ AC_CONFIG_FILES([bindings/tcl/ifOctets.tcl]) AC_CONFIG_FILES([bindings/python/Makefile]) AC_CONFIG_FILES([Makefile]) -AC_CONFIG_COMMANDS([default],[[ chmod +x examples/*.cgi examples/*.pl]],[[]]) +AC_CONFIG_COMMANDS([default],[[ chmod +x examples/*.pl]],[[]]) AC_OUTPUT AC_MSG_CHECKING(in) diff --git a/program/examples/Makefile.am b/program/examples/Makefile.am index 747ce3d2..921249be 100644 --- a/program/examples/Makefile.am +++ b/program/examples/Makefile.am @@ -4,10 +4,13 @@ #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4 -EXTRA_DIST = cgi-demo.cgi.in piped-demo.pl.in shared-demo.pl.in \ - stripes.pl.in bigtops.pl.in minmax.pl.in 4charts.pl.in +EXTRA_DIST = cgi-demo.cgi.in examplesdir = $(pkgdatadir)/examples examples_SCRIPTS = cgi-demo.cgi piped-demo.pl shared-demo.pl \ stripes.pl bigtops.pl minmax.pl 4charts.pl +cgi-demo.cgi: cgi-demo.cgi.in $(top_builddir)/config.status + sed 's,@''exec_prefix@,$(exec_prefix),' $< > $@ + chmod a+x $@ + -- 2.30.2