/[notice-sender]/jifty-dbi/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 /jifty-dbi/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66 - (hide annotations)
Fri Jul 8 11:46:35 2005 UTC (18 years, 10 months ago) by dpavlin
Original Path: trunk/Makefile.PL
File MIME type: text/plain
File size: 1765 byte(s)
first cut at implementing aliases file handling (SOAP doesn't work)
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 dpavlin 46 'Class::DBI::Pg' => 0,
11 dpavlin 64 'Class::DBI::AbstractSearch' => 0,
12 dpavlin 46 'DBD::Pg' => 1.42,
13 dpavlin 38 'Getopt::Long' => 0,
14     'Email::Valid' => 0,
15     'Email::Send' => 0,
16 dpavlin 47 'IO::All' => 0,
17 dpavlin 38 'Carp' => 0,
18     'SOAP::Lite' => 0,
19     'Email::Auth::AddressHash' => 0,
20     'Email::Simple' => 0,
21     'Email::Address' => 0,
22     'Mail::DeliveryStatus::BounceParser' => 0,
23 dpavlin 66 'Mail::Alias' => 0,
24     'Cwd' => 0,
25 dpavlin 20 }, # e.g., Module::Name => 1.1
26     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
27 dpavlin 21 (ABSTRACT_FROM => 'Nos.pm', # retrieve abstract from module
28 dpavlin 20 AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
29     );
30    
31     sub MY::postamble {
32     return <<'MAKE_MORE';
33    
34     HTML_DIR=pod2html
35    
36     html: $(TO_INST_PM)
37     test -e $(HTML_DIR) || mkdir $(HTML_DIR)
38     ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
39 dpavlin 27 ls *.cgi | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.* --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
40 dpavlin 20 rm -f pod2htm?.tmp
41     test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
42 dpavlin 54 test ! -z "`which postgresql_autodoc`" && cd $(HTML_DIR) && postgresql_autodoc -d notices && dot -Tpng -o notices.png notices.dot
43 dpavlin 20
44     changelog:
45     svn update && svn -v log > Changes
46    
47     tags:
48     ctags *.p?
49    
50     db=notices
51    
52     init:
53 dpavlin 26 dropdb $(db) || true
54 dpavlin 20 createdb $(db)
55     psql $(db) < schema.sql
56    
57     save:
58     pg_dump -c $(db) > $(db).sql
59    
60     load:
61     psql $(db) < $(db).sql
62    
63     MAKE_MORE
64     }

  ViewVC Help
Powered by ViewVC 1.1.26