/[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 29 - (hide annotations)
Mon May 16 20:58:44 2005 UTC (18 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1395 byte(s)
attempt at validating queued mail messages, sending with unique hash,
documentation for inbox option (but not implementation),
renamed add_message_to_queue to add_message_to_list

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

  ViewVC Help
Powered by ViewVC 1.1.26