Autoconf-Template

 view release on metacpan or  search on metacpan

bin/autoconf-template-perl  view on Meta::CPAN

    render_tt_template(
      { template   => $template,
        parameters => $parameters,
        outfile    => $out,
        cleanup    => $cleanup,
      }
    );

    if ( defined $mode && $mode ) {
      TRACE sprintf 'setting permissions of  %s to %s', $out, $mode // $EMPTY;
      chmod oct($mode), $out;
    }
  }

  return;
}

########################################################################
sub create_requirement_files {
########################################################################
  my ($options) = @_;

bin/autoconf-template-perl  view on Meta::CPAN

    create_path($dest_path);

    TRACE sprintf 'copying %s to %s', "$PROJECT_DIR/$file", $dest_path;

    croak "missing $file - perhaps you forgot to add it to Makefile.am?\n"
      if !-e "$PROJECT_DIR/$file";

    copy( "$PROJECT_DIR/$file", $dest_path );

    if ( defined $mode ) {
      TRACE sprintf 'chmod %s, %s', $mode, $dest_path;
      chmod oct($mode), $dest_path;
    }
  }

  return;
}

########################################################################
sub create_dependency_tree {
########################################################################
  my ( $dirs, $all_dependencies, $root ) = @_;

share/Makefile.am.tt  view on Meta::CPAN

ACLOCAL_AMFLAGS = -I autotools

requires.txt:
	autoconf-ax-check-requirements -f text -o $@

dist_resources_DATA = \
    requires.txt

install-from-cpan: install-from-cpan.in
	$(do_subst) $< > $@
	chmod +x $@

bin_SCRIPTS = install-from-cpan

$(PACKAGE_NAME).spec: % : %.in
	$(do_subst) $< > $@

.PHONY: cpan

cpan:
	requires=$(datadir)/$(PACKAGE)/requires.txt; \

share/configure.ac.tt  view on Meta::CPAN

    src/main/perl/cgi-bin/Makefile
    src/main/html/Makefile[% END %][% IF cpan_build_mode %]
    cpan/Makefile[% END %]
    config/Makefile
    resources/Makefile
    autotools/prove.sh
])

AC_OUTPUT

chmod +x autotools/prove.sh

printf "\n"
printf "${PACKAGE} has been configured with the following options:\n"
printf "                            Prefix: %s\n" "`__poor_mans_expand_file_name prefix`"
printf "                     User binaries: %s\n" "`__poor_mans_expand_file_name bindir`"
printf "                   System binaries: %s\n" "`__poor_mans_expand_file_name sbindir`"
printf "               Configuration files: %s\n" "`__poor_mans_expand_file_name sysconfdir`"
printf "                       State files: %s\n" "`__poor_mans_expand_file_name localstatedir`"
printf "\n"
printf "                              perl: %s\n" "`__poor_mans_expand_file_name PERL`"

share/html/Makefile.am.tt  view on Meta::CPAN


install-exec-hook:
	for a in log session spool htdocs; do \
	  if [ $$(id -u) == "0" ]; then \
	    chown -R $(apache_user):$(apache_group) $(DESTDIR)$(apache_sitedir)/$$a; \
	  fi ; \
	done

	for a in log session spool htdocs; do \
	  if [ $$(id -u) == "0" ]; then \
	    chmod -R 0775 $(DESTDIR)$(apache_sitedir)/$$a; \
	  fi ; \
	done

install-data-local:
	for a in log session spool htdocs cgi-bin config include; do \
	  $(MKDIR_P) $(DESTDIR)$(apache_sitedir)/$$a; \
	done

	for a in css javascript img; do \
	  $(MKDIR_P) $(DESTDIR)$(apache_site_htdocsdir)/$$a; \

share/unit-tests.tt  view on Meta::CPAN

GUNIT_TESTS = $(RUNIT_TESTS:.t=.test)

TESTS = $(GUNIT_TESTS)

# this was a tough one...VPATH builds are fun
# prove.sh is actually built by configure.ac
#
%.test: %.t
	test -d "$$(dirname "$@")" || $(INSTALL) -d "$$(dirname "$@")"
	ln -sf $(abs_top_builddir)/autotools/prove.sh $@
	chmod +x $@

$(GUNIT_TESTS): $(UNIT_TESTS)

$(RUNIT_TEST): $(UNIT_TESTS)

# we need to build .t files from .t.in files simply to get .t files
# into the build directory for VPATH builds (make distcheck)
%.t: %.t.in
	test -d "$$(dirname "$@")" || $(INSTALL) -d "$$(dirname "$@")"
	cp $< $(abs_builddir)/$@



( run in 0.419 second using v1.01-cache-2.11-cpan-496ff517765 )