Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 80 lines (59 sloc) 2.214 kb
49d1e32 @abw *** empty log message ***
authored
1 use ExtUtils::MakeMaker; # -*-perl-*-
3ebfa07 @abw Initial revision
authored
2
e39913f @abw *** empty log message ***
authored
3 select STDERR;
4 $| = 1;
5 select STDOUT;
6
7 # beep!
8 print STDERR "\a";
9
10 eval "use Template";
11 unless ($@) {
12 warn(<<EOF);
13 IMPORTANT NOTE:
14
15 Version $Template::VERSION of the Template Toolkit detected.
16
17 This installation will most likely trash that version and render
18 it totally useless. You probably don't want that to happen right
19 now, so please ensure that you install this beta release into a
20 separate directory. These co-existance problems will be solved
21 for version 2.00 proper.
22
23 If you are suitably wise and have issued the appropriate command
24 line incantation to ensure that this bundle is installed to a safe
25 location, e.g.
26
27 perl Makefile.PL LIB=/some/other/place
28
29 then we apologise. This script is too dumb to recognise the fact
30 and must issue this tedious warning regardless.
31
32 EOF
33 }
34
35 warn(<<EOF);
36 This is beta code. Please read the README and Changes files for
37 details of the current status.
38
39 EOF
40
41
42
49d1e32 @abw *** empty log message ***
authored
43 my $man3pods = {
44 map { ("docs/pod/$_.pod" => "\$(INST_MAN3DIR)/Template::$_.\$(MAN3EXT)") }
45 qw( Base Config Constants Context Document Exception Filters
e39913f @abw *** empty log message ***
authored
46 Iterator Parser Plugin Plugins Provider Service Stash Test )
49d1e32 @abw *** empty log message ***
authored
47 };
48 $man3pods->{'docs/pod/Template.pod'} = '$(INST_MAN3DIR)/Template.$(MAN3EXT)';
3ebfa07 @abw Initial revision
authored
49
50 WriteMakefile(
51 'NAME' => 'Template',
52 'DISTNAME' => 'Template-Toolkit',
53 'VERSION_FROM' => 'lib/Template.pm',
54 'EXE_FILES' => [ 'bin/tpage', 'bin/ttree' ],
55 'PMLIBDIRS' => [ 'lib' ],
56 'PREREQ_PM' => { 'AppConfig' => 1.52 },
49d1e32 @abw *** empty log message ***
authored
57 'MAN3PODS' => $man3pods,
3ebfa07 @abw Initial revision
authored
58 'dist' => {
59 'COMPRESS' => 'gzip',
60 'SUFFIX' => 'gz',
61 'PREOP' => build_docs(),
62 },
63 );
64
eabb19e @abw *** empty log message ***
authored
65 # 'DIR' => [ 'clib' ],
66
3ebfa07 @abw Initial revision
authored
67 sub build_docs {
68 return <<EOF;
69 echo "Building documentation for version \$(VERSION)" ; \\
49d1e32 @abw *** empty log message ***
authored
70 \$(PERL) bin/ttree -f ./docs/ttree.cfg -a; \\
3ebfa07 @abw Initial revision
authored
71 EOF
72 }
73
74
9d806e6 @abw *** empty log message ***
authored
75 # Could add these before/after call to ttree to write-protect output docs
76 # to prevent accidental editing. Better to edit the source files...
77 # \$(CHMOD) 644 docs/pod/*.pod; \\
78 # \$(CHMOD) 444 docs/pod/*.pod; \\
79
Something went wrong with that request. Please try again.