/[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 534 - (hide annotations)
Mon Jun 26 15:31:04 2006 UTC (17 years, 10 months ago) by dpavlin
File MIME type: text/plain
File size: 2285 byte(s)
 r716@llin:  dpavlin | 2006-06-26 17:32:16 +0200
 much better html generation

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 498 'Spreadsheet::ParseExcel', => 0,
34 dpavlin 1 },
35     dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
36 dpavlin 7 clean => { FILES => 'WebPAC-* pod2html Makefile tags' },
37 dpavlin 1 );
38    
39     sub MY::postamble {
40     return <<'MAKE_MORE';
41    
42     HTML_DIR=pod2html
43 dpavlin 495 profile_perl=./run.pl
44 dpavlin 1
45     html: $(TO_INST_PM)
46 dpavlin 534 test -e $(HTML_DIR) && rm -Rf "$(HTML_DIR)" || true
47     mkdir "$(HTML_DIR)"
48 dpavlin 1
49 dpavlin 534 # add additional html documents
50     test ! -z "`which svn2html.pl`" && svk update && svn2html.pl > $(HTML_DIR)/Changes.html
51 dpavlin 1
52 dpavlin 534 test -e $(HTML_DIR)/pod.css || ln -s ../pod.css $(HTML_DIR)/
53    
54     test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl --frames="WebPAC documentation" --existing --css=pod.css ./lib $(HTML_DIR)
55    
56 dpavlin 1 changelog:
57     svn update && svn -v log > Changes
58    
59     tags:
60 dpavlin 7 ctags *.p[ml] */*.p[ml] */*/*.p[ml]
61 dpavlin 1
62 dpavlin 23 sf:
63     svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@cvs.sourceforge.net:/cvsroot/webpac webpac2
64    
65 dpavlin 301 config_yml:
66 dpavlin 145 test ! -e conf/config.yml && ln -s /data/Webpacus/config.yml conf/ || true
67 dpavlin 500 #perl -c conf/normalize/*.pl
68     perl -c conf/normalize/*.pl 2>&1 | grep 'conf/normalize' | grep -v 'OK' | sed -e 's#^.*conf/normalize#conf/normalize#' -e 's#,##' | awk '{ print "+" $3 " " $1 }' | xargs -i echo vi {}
69 dpavlin 23
70 dpavlin 301 run: config_yml
71 dpavlin 310 rm -f log
72 dpavlin 301 ./run.pl --clean --limit 100
73    
74 dpavlin 307 full: config_yml
75 dpavlin 310 rm -f log
76 dpavlin 307 ./run.pl
77 dpavlin 301
78 dpavlin 495 profile:
79     perl -d:DProf $(profile_perl) --limit 500 && dprofpp > profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
80    
81     profile2:
82     perl -d:SmallProf $(profile_perl) --limit 100 && sort -k 2nr,2 smallprof.out | vi -R -
83    
84 dpavlin 1 MAKE_MORE
85     }

  ViewVC Help
Powered by ViewVC 1.1.26