finding locations of many files via kpse

Norbert Preining norbert at preining.info
Mon Aug 5 16:00:17 CEST 2024


Hi Erik

On Mon, 05 Aug 2024, Erik Nijenhuis wrote:
> So the synopsis would be:
>   `texlua norbert_search.lua [OPTIONS] SUBDIR PATHS...` ?

No, sorry

	texlua norbert_search.lua [--mark-sys-files] SUBDIR
because it reads the input from STDIN.

STDIN format:
----------
file
ext ext ext ...
file
ext ext ext ...
...
---------

STDOUT format:
----------
file
resolved file | empty | SYSTEM:resolved system file


> I haven't used or even read it, but lua-alt-getopt sounds promising in achieving
> CLI stuff. link:
> 	https://ctan.org/pkg/lua-alt-getopt

Too much overhead since it has only one option and parsing is easy ;-)

Best regards

Norbert

--
PREINING Norbert                              https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the texhax mailing list.