push version to 0.24
[Biblio-Isis] / Makefile.PL
index b1f2135..81d1ed5 100644 (file)
@@ -2,13 +2,15 @@ use ExtUtils::MakeMaker;
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
-       NAME => 'IsisDB',
-       VERSION_FROM => 'IsisDB.pm', # finds $VERSION
+       NAME => 'Biblio::Isis',
+       VERSION_FROM => 'lib/Biblio/Isis.pm', # finds $VERSION
        AUTHOR => 'Dobrica Pavlinusic (dpavlin@rot13.org)',
        AUTHOR => 'Dobrica Pavlinusic (dpavlin@rot13.org)',
-       ABSTRACT_FROM => 'IsisDB.pm',
+       ABSTRACT_FROM => 'lib/Biblio/Isis.pm',
        PREREQ_PM => {
        PREREQ_PM => {
-               'Test::Simple' => 0.44,
+               'Test::More' => 0,
                'Carp' => 0,
                'Carp' => 0,
+               'File::Glob' => 0,
+               'File::Spec' => 0,
        },
        depend => {
                dist => 'changelog',
        },
        depend => {
                dist => 'changelog',
@@ -21,13 +23,13 @@ sub MY::postamble {
 HTML_DIR=pod2html
 
 html: $(TO_INST_PM)
 HTML_DIR=pod2html
 
 html: $(TO_INST_PM)
-       test -e $(HTML_DIR) || mkdir $(HTML_DIR)
-       ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
-       rm -f pod2htm?.tmp
+       test -e $(HTML_DIR) && rm -Rf $(HTML_DIR) || true
+       mkdir $(HTML_DIR)
+       allpod2xhtml.pl lib/ $(HTML_DIR)
        test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
 
 changelog:
        test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
 
 changelog:
-       svn update && svn -v log > Changes
+       svk update && svk -v log > Changes
 
 tags:
        ctags *.p? */*.p?
 
 tags:
        ctags *.p? */*.p?
@@ -39,5 +41,15 @@ cmp:
 bench: all
        cd ./scripts/ && ./bench.pl
 
 bench: all
        cd ./scripts/ && ./bench.pl
 
+cpan:
+       make clean
+       rm -f Biblio-Isis-*.tar.gz
+       perl Makefile.PL
+       make changelog
+       make dist
+       make disttest
+       @echo
+       @echo -n "Upload" Biblio-Isis-*.tar.gz "to CPAN? [y/N]:"
+       @read upload && test "$$upload" == "y" && cpan-upload -verbose Biblio-Isis-*.tar.gz
 MAKE_MORE
 }
 MAKE_MORE
 }