/[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 26 - (show annotations)
Mon May 16 14:01:55 2005 UTC (18 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1215 byte(s)
make init works if database notices doesn't exist

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

  ViewVC Help
Powered by ViewVC 1.1.26