/[webpac2]/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 495 - (hide annotations)
Sun May 14 19:45:16 2006 UTC (17 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1850 byte(s)
 r650@llin:  dpavlin | 2006-05-14 20:21:30 +0200
 added profile and profile2 targets

1 dpavlin 1 use strict;
2     use warnings;
3     use ExtUtils::MakeMaker;
4    
5     WriteMakefile(
6     NAME => 'WebPAC',
7     AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>',
8     VERSION_FROM => 'lib/WebPAC.pm',
9     ABSTRACT_FROM => 'lib/WebPAC.pm',
10     PL_FILES => {},
11     PREREQ_PM => {
12 dpavlin 225 'Test::More' => 0,
13     'YAML' => 0,
14 dpavlin 3 'File::Slurp' => 0,
15 dpavlin 392 'Log::Log4perl' => 1.02,
16 dpavlin 4 'Data::Dumper' => 0,
17 dpavlin 9 'Cwd' => 0,
18     'Text::Iconv' => 0,
19 dpavlin 10 'Storable' => 0,
20     'DBM::Deep' => 0,
21 dpavlin 12 'XML::Simple' => 0,
22 dpavlin 16 'Template' => 0,
23     'Time::HiRes' => 0,
24 dpavlin 18 'File::Temp' => 0,
25 dpavlin 42 'List::Util' => 0,
26 dpavlin 331 'Encode' => 0,
27 dpavlin 211 'LWP' => 0,
28 dpavlin 215 'File::Path' => 0,
29 dpavlin 298 'Biblio::Isis' => 0.13,
30     'MARC::Fast' => 0.02,
31 dpavlin 458 'Search::Estraier' => 0.06,
32 dpavlin 459 'List::Util' => 0,
33 dpavlin 1 },
34     dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
35 dpavlin 7 clean => { FILES => 'WebPAC-* pod2html Makefile tags' },
36 dpavlin 1 );
37    
38     sub MY::postamble {
39     return <<'MAKE_MORE';
40    
41     HTML_DIR=pod2html
42 dpavlin 495 profile_perl=./run.pl
43 dpavlin 1
44     html: $(TO_INST_PM)
45     test -e $(HTML_DIR) || mkdir $(HTML_DIR)
46    
47     test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl ./lib $(HTML_DIR)
48     test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
49    
50     changelog:
51     svn update && svn -v log > Changes
52    
53     tags:
54 dpavlin 7 ctags *.p[ml] */*.p[ml] */*/*.p[ml]
55 dpavlin 1
56 dpavlin 23 sf:
57     svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@cvs.sourceforge.net:/cvsroot/webpac webpac2
58    
59 dpavlin 301 config_yml:
60 dpavlin 145 test ! -e conf/config.yml && ln -s /data/Webpacus/config.yml conf/ || true
61 dpavlin 23
62 dpavlin 301 run: config_yml
63 dpavlin 310 rm -f log
64 dpavlin 301 ./run.pl --clean --limit 100
65    
66 dpavlin 307 full: config_yml
67 dpavlin 310 rm -f log
68 dpavlin 307 ./run.pl
69 dpavlin 301
70 dpavlin 495 profile:
71     perl -d:DProf $(profile_perl) --limit 500 && dprofpp > profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
72    
73     profile2:
74     perl -d:SmallProf $(profile_perl) --limit 100 && sort -k 2nr,2 smallprof.out | vi -R -
75    
76 dpavlin 1 MAKE_MORE
77     }

  ViewVC Help
Powered by ViewVC 1.1.26