Home

Awesome

texlive-rewrite

Some of the core scripts of TeX Live are still written in shell, taken from Thomas Esser's teTeX. Since we would like to have the same scripts used on all supported platforms, that includes Windows, we are planning to rewrite these scripts in perl or texlua.

Currently only updmap has been rewritten (and extended), but we want to do the same with mktexlsr and fmtutils, as well as the depending scripts.

Contributions are welcome. Rewrite of some core scripts in TeX Live from shell to perl

Aims

Our aims are:

Scripts involved:

mktexlsr/mktexupd

help output

Rebuild ls-R filename databases used by TeX. If one or more arguments DIRS are given, these are used as the directories in which to build ls-R. Else all directories in the search path for ls-R files ($TEXMFDBS) are used.

Options:
  --dry-run  do not actually update anything
  --help     display this help and exit 
  --quiet    cancel --verbose
  --silent   same as --quiet
  --verbose  explain what is being done
  --version  output version information and exit

If standard input is a terminal, --verbose is on by default.

mktexupd

adds entries without reading the rest of the tree

Operation of mktexlsr:

perl option:

use File::Find (core module)

find(\&wanted, @directories)