[tex-k] testing kpsewhich --subdir

Karl Berry karl at freefriends.org
Mon Dec 24 02:05:37 CET 2007


Heiko and all,

I had time to finish implementing --subdir today.  Can anyone test it?
I put a new i386-linux binary in svn for tl:
http://tug.org/svn/texlive/trunk/Master/bin/i386-linux/kpsewhich?view=log

Here is the test case I was using:
$ kpsewhich --all afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/arabtex/afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/ledmac/afoot.sty

# choose one or the other:
$ kpsewhich --subdir=ledmac afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/ledmac/afoot.sty
$ kpsewhich --subdir=arabtex --subdir=ledmac afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/arabtex/afoot.sty

# you can say --subdir multiple times:
$ kpsewhich --subdir=arabtex --subdir=ledmac afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/arabtex/afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/ledmac/afoot.sty

# you can give a more specific path:
$ kpsewhich --subdir=/tex/latex/ledmac/ afoot.sty
/home/texlive/karl/Master/texmf-dist/tex/latex/ledmac/afoot.sty

There is no globbing or // wildcards, it's just a string comparison at
present.

Heiko, if this is going to work for you, I will write up some documentation.

Thanks,
Karl

P.S. The fact that afoot.sty exists in two separate packages is a bug in
itself, but later for that ...


More information about the tex-k mailing list