/[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

Contents of /trunk/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Tue May 24 14:02:05 2005 UTC (18 years, 10 months ago) by dpavlin
File MIME type: text/plain
File size: 1564 byte(s)
added SMTP driver, dependency on IO::All, various fixes and improvements

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

  ViewVC Help
Powered by ViewVC 1.1.26