/[notice-sender]/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 38 - (hide annotations)
Tue May 17 21:37:06 2005 UTC (18 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1503 byte(s)
documentation and other misc improvements

1 dpavlin 20 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     WriteMakefile(
6     NAME => 'Nos',
7 dpavlin 21 VERSION_FROM => 'Nos.pm', # finds $VERSION
8 dpavlin 20 PREREQ_PM => {
9 dpavlin 38 'Class::DBI::Loader' => 0,
10     'Getopt::Long' => 0,
11     'Email::Valid' => 0,
12     'Email::Send' => 0,
13     'Carp' => 0,
14     'SOAP::Lite' => 0,
15     'Email::Auth::AddressHash' => 0,
16     'Email::Simple' => 0,
17     'Email::Address' => 0,
18     'Mail::DeliveryStatus::BounceParser' => 0,
19 dpavlin 20 }, # e.g., Module::Name => 1.1
20     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
21 dpavlin 21 (ABSTRACT_FROM => 'Nos.pm', # retrieve abstract from module
22 dpavlin 20 AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
23     );
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) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
33 dpavlin 27 ls *.cgi | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.* --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
34 dpavlin 20 rm -f pod2htm?.tmp
35     test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
36    
37     changelog:
38     svn update && svn -v log > Changes
39    
40     tags:
41     ctags *.p?
42    
43     db=notices
44    
45     init:
46 dpavlin 26 dropdb $(db) || true
47 dpavlin 20 createdb $(db)
48     psql $(db) < schema.sql
49    
50     save:
51     pg_dump -c $(db) > $(db).sql
52    
53     load:
54     psql $(db) < $(db).sql
55    
56     MAKE_MORE
57     }

  ViewVC Help
Powered by ViewVC 1.1.26