Anyone wants to program some perl?
Hi everyone,
if you want to get involved with Debian and TeX Live packaging
and programming, here is a first idea:
target: write a perl function that takes a TeX Live package name and
a root directory as input, and generates a list of collapsed
directories and files for that pacakge.
Example: We are building the package texlive-latex-base, it contains
the following TeX Live packages: ae, amscls, amsmath ,...
For example look at amsmath: Get the file list from the tpm
my $tlp = $tlpdb->get_package("package-name");
my @runfiles = $tlp->runfiles;
my @docfiles = $tlp->docfiles;
That gives for amsmath
docfiles:
texmf-dist/doc/latex/amsmath/00LICENSE.txt
texmf-dist/doc/latex/amsmath/amsbsy.pdf
texmf-dist/doc/latex/amsmath/amscd.pdf
...
runfiles:
texmf-dist/tex/latex/amsmath/amsbsy.sty
texmf-dist/tex/latex/amsmath/amscd.sty
texmf-dist/tex/latex/amsmath/amsgen.sty
...
and the output should be:
-----
amsmath: lppl
/usr/share/texlive/texmf-dist/doc/latex/amsmath/*
/usr/share/texlive/texmf-dist/tex/latex/amsmath/*
-----
For amsrefs for exampls:
------
amsrefs: lppl1.3
/usr/share/texlive/texmf-dist/doc/latex/amsrefs/*
/usr/share/texlive/texmf-dist/bibtex/bib/amsrefs/*
/usr/share/texlive/texmf-dist/bibtex/bst/amsrefs/*
/usr/share/texlive/texmf-dist/tex/latex/amsrefs/*
-----
Warning:
- the actual files should be checked
- if there are files that do NOT belong to this package in a directory,
it CANNOT be collapsed to *, but every file needs to be listed!!!
- location of the doc files might e different, check the current TL 2011
packages in Debian
Hint:
THere is already code for that in tpm2licenses in tex-common/trunk/scripts,
you only need to extract the collapse functions and write a bit of stuff
around it.
Best wishes
Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
NEEN SOLLARS (pl.n.)
Any ensemble of especially unflattering and particular garments worn
by a woman which tell you that she is right at the forefront of
fashion.
--- Douglas Adams, The Meaning of Liff
Reply to: