1 |
use 5.006; |
use 5.008; |
2 |
use ExtUtils::MakeMaker; |
use ExtUtils::MakeMaker; |
3 |
|
|
4 |
my $prefix; # for use in constants and postamble |
my $prefix; # for use in constants and postamble |
7 |
# the contents of the Makefile that is written. |
# the contents of the Makefile that is written. |
8 |
WriteMakefile( |
WriteMakefile( |
9 |
'NAME' => 'Bibulus', |
'NAME' => 'Bibulus', |
10 |
'VERSION' => '0.03', |
'VERSION' => '0.04', |
11 |
'EXE_FILES' => [], |
'EXE_FILES' => [preproclang], |
12 |
'PREREQ_PM' => {XML::Twig => 2.02}, |
'PREREQ_PM' => {XML::Twig => 2.02}, |
13 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
14 |
(ABSTRACT_FROM => 'Bibulus.pm', |
(ABSTRACT_FROM => 'Bibulus.pm', |
38 |
chomp($dir = `kpsewhich --expand-var=\'\$HOMETEXMF\'`); |
chomp($dir = `kpsewhich --expand-var=\'\$HOMETEXMF\'`); |
39 |
} |
} |
40 |
|
|
|
# plain cp will fail if the directory doesn't exist |
|
|
# -- which command should be used instead? |
|
41 |
return <<"EOF"; |
return <<"EOF"; |
42 |
install:: |
install:: |
43 |
\@echo Now updating the TEXMF tree... |
\@echo Now updating the TEXMF tree... |
44 |
|
install -d $dir/bibtex/bst/misc |
45 |
cp BibTeX/bib2xml.bst $dir/bibtex/bst/misc/ |
cp BibTeX/bib2xml.bst $dir/bibtex/bst/misc/ |
46 |
|
install -d $dir/tex/latex/misc |
47 |
cp LaTeX/bibulus.sty $dir/tex/latex/misc/ |
cp LaTeX/bibulus.sty $dir/tex/latex/misc/ |
48 |
mktexlsr |
mktexlsr $dir |
49 |
|
|
50 |
EOF |
EOF |
51 |
} |
} |