/[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 46 - (show annotations)
Mon May 23 15:59:45 2005 UTC (18 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1547 byte(s)
depend on DBD::Pg 1.42 to prevent DBIx::ContextualFetch from failing

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

  ViewVC Help
Powered by ViewVC 1.1.26