[tex-live] Patch for "texdoc -s" to use the ls-R database

Frank Küster frank at kuesterei.ch
Fri Jun 1 14:38:37 CEST 2007


karl at freefriends.org (Karl Berry) wrote:

>     call kpsewhere instead of kpsewhich in this case.
>
> I didn't even know kpsewhere existed.  It should never have been
> implemented, it seems to me.  It is what kpsewhich --all did, but
> apparently that got broken at some intervening time.  Sigh.

Any idea why it stopped working?

>     grep only through the doc parts of ls-R
>
> If you mean extract out the doc subtrees only, maybe
> filter first with sed -n '/^\.doc/,/^$/p' ?

sed -n '/^\.\/doc/,/^$/ p'

seems to work.

>     With the old implementation (texdoc -s lm), I get 
>
> With the texdoc in TL2007, texdoc -s lm takes 7sec on the first run for
> me.  (Much less than 1sec on the second run, since it's all in disk
> cache, presumably.)

That's really a big difference.  I hope it's not my harddisk which
causes this, like some DVD media...

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)


More information about the tex-live mailing list