[OS X TeX] TL2024

Bruno Voisin bvoisin at icloud.com
Sat Mar 16 10:26:41 CET 2024


> Karl wrote:
> 
> Do you happen to have a
> comparison at hand showing the files that mktexlsr.pl missed?

Problem is, running the two

/usr/local/texlive/2024/texmf-dist/scripts/texlive/mktexlsr
/usr/local/texlive/2024/texmf-dist/scripts/texlive/mktexlsr.pl

in sequence, the shell script lists files and directories in alphabetical order (caps first), while the Perl script lists files and directories in random order. So how can a diff be made?

Taking for example the ls-R (5.4 MB) created in texmf-dist, that created by mktexlsr (shell script) starts with

	% ls-R -- filename database for kpathsea; do not change this line.
	./:
	asymptote
	bibtex
	chktex
	context
	doc
	dvipdfmx
	dvips
	fonts
	hbf2gf
	ls-R
	makeindex
	metafont
	metapost
	mft
	omega
	pbibtex
	psutils
	scripts
	source
	tex
	tex4ht
	texconfig
	texdoc
	texdoctk
	ttf2pk
	web2c
	xdvi
	xindy

	./asymptote:
	CAD.asy
	GUI
	[...]

while that created by mktexlsr.pl (Perl script) starts with

	% ls-R -- filename database for kpathsea; do not change this line.
	
	./:
	.:
	bibtex
	xdvi
	chktex
	pbibtex
	fonts
	ttf2pk
	scripts
	asymptote
	ls-R
	omega
	hbf2gf
	tex
	psutils
	texconfig
	doc
	web2c
	mft
	xindy
	metapost
	metafont
	texdoc
	texdoctk
	dvipdfmx
	tex4ht
	dvips
	source
	context
	makeindex

	./bibtex:
	csf
	bst
	[...]

That said, the file sizes are very similar:

% ls -l Desktop/ls-R_*.txt
-rw-r--r--  1 brunovoisin  staff  5447084 Mar 16 09:22 Desktop/ls-R_perl.txt
-rw-r--r--  1 brunovoisin  staff  5447080 Mar 16 09:22 Desktop/ls-R_shell.txt

So, if there's a difference between the two, it must be minimal.

Bruno


More information about the tex-live mailing list.