Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3ebfa076bb
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (25 sloc) 0.922 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
use ExtUtils::MakeMaker;


WriteMakefile(
    'NAME' => 'Template',
    'DISTNAME' => 'Template-Toolkit',
    'VERSION_FROM' => 'lib/Template.pm',
    'EXE_FILES' => [ 'bin/tpage', 'bin/ttree' ],
    'PMLIBDIRS' => [ 'lib' ],
    'PREREQ_PM' => { 'AppConfig' => 1.52 },
    'dist' => {
'COMPRESS' => 'gzip',
'SUFFIX' => 'gz',
'PREOP' => build_docs(),
    },
);

sub build_docs {
    return <<EOF;
echo "Building documentation for version \$(VERSION)" ; \\
\$(RM_F) lib/Template.pod lib/Template/Tutorial.pod ; \\
\$(PERL) doc/bin/mkdoc README.pod | pod2text > README ; \\
\$(PERL) doc/bin/mkdoc Template.pod > lib/Template.pod ; \\
\$(PERL) doc/bin/mkdoc Tutorial.pod > lib/Template/Tutorial.pod ; \\
\$(CHMOD) 444 lib/Template.pod; \\
\$(CHMOD) 444 lib/Template/Tutorial.pod \\
EOF
}
Something went wrong with that request. Please try again.