/[Search-Estraier]/trunk/Makefile.PL
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 194 - (hide annotations)
Sat Nov 11 23:34:55 2006 UTC (17 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 1649 byte(s)
reorg directory structure to lib/Search/Estraier.pm
1 dpavlin 2 use 5.008;
2     use ExtUtils::MakeMaker;
3     # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4     # the contents of the Makefile that is written.
5    
6     # now write Makefile
7     WriteMakefile(
8     NAME => 'Search::Estraier',
9 dpavlin 194 VERSION_FROM => 'lib/Search/Estraier.pm', # finds $VERSION
10 dpavlin 2 PREREQ_PM => {
11     'Carp' => 0,
12 dpavlin 9 'Test::Simple' => 0,
13     'Test::Exception' => 0,
14 dpavlin 33 'URI' => 0,
15 dpavlin 59 'LWP::UserAgent' => 0,
16 dpavlin 36 'MIME::Base64' => 0,
17 dpavlin 49 'URI::Escape' => 0,
18 dpavlin 2 }, # e.g., Module::Name => 1.1
19     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
20 dpavlin 194 (ABSTRACT_FROM => 'lib/Search/Estraier.pm', # retrieve abstract from module
21 dpavlin 2 AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
22 dpavlin 54 clean => { FILES => "Makefile Makefile.old pod2html" },
23 dpavlin 2 );
24    
25     sub MY::postamble {
26     return <<'MAKE_MORE';
27    
28     HTML_DIR=pod2html
29    
30     html: $(TO_INST_PM)
31     test -e $(HTML_DIR) || mkdir $(HTML_DIR)
32     ls $(MAN1PODS) $(MAN3PODS) | xargs -i sh -c 'pod2xhtml.pl < {} > pod2html/`basename {} | cut -d. -f1`.html'
33     rm -f pod2htm?.tmp
34     test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
35    
36     changelog:
37 dpavlin 104 svk log -v > Changes
38 dpavlin 2
39     tags:
40     ctags *.p?
41    
42 dpavlin 158 cpan:
43     make clean
44 dpavlin 162 rm -f Search-Estraier-*.tar.gz
45 dpavlin 158 perl Makefile.PL
46     make changelog
47     make dist
48     make disttest
49     sudo /etc/init.d/hyperestraier stop
50     make disttest
51     sudo /etc/init.d/hyperestraier start
52 dpavlin 162 @echo
53     @echo -n "Upload" Search-Estraier-*.tar.gz "to CPAN? [y/N]:"
54     @read upload && test "$$upload" == "y" && cpan-upload -verbose Search-Estraier-*.tar.gz
55 dpavlin 158
56 dpavlin 163 cover:
57     cover -delete
58     HARNESS_PERL_SWITCHES=-MDevel::Cover make test
59     cover
60    
61 dpavlin 2 MAKE_MORE
62     }

  ViewVC Help
Powered by ViewVC 1.1.26