[tlbuild] linked scripts when script names only differ by their extensions

Robert Alessi alessi at robertalessi.net
Sun Mar 17 11:13:36 CET 2024


Hi,

This is about TeX Live 2024 on OpenBSD.

I may be wrong here, but I've noticed that some of the scripts
provided by the memoize package (to take this one as an example, there
might be other packages affected, but I don't think there are any),
namely:

- memoize-clean.pl
- memoize-clean.py
- memoize-extract.pl
- memoize-extract.py

only differ by their extension names.

As a result, here's what I have in my TL binaries directory:

memoize-clean -> ../../texmf-dist/scripts/memoize/memoize-clean.py
memoize-extract -> ../../texmf-dist/scripts/memoize/memoize-extract.py

In the Makefile that is in source/Work/texk/texlive/linked_scripts, I
see:

   772            for s in $(nobase_dist_texmf_scripts_SCRIPTS); do \
   773              target=`basename $$s | tr '[A-Z]' '[a-z]'`; \
   774              echo "$$s" | grep listings-ext.sh >/dev/null \
   775              || target=`echo $$target | sed 's,\.[^/]*$$,,'`; \
   776              rm -f $$target; \
   777              echo "creating link '$$target' -> '$$REL/texmf-dist/scripts/$$s'"; \
   778              $(LN_S) $$REL/texmf-dist/scripts/$$s $$target || exit 1; \

Could this be the reason for the (over)simplification that I have?
`sed 's,\.[^/]*$$,,'` strips the link name of its extension, then line
776 removes the link just created (that is eg. memoize-extract.pl) to
leave only one link to what follows in order, that is
memoize-extract.py.

Thanks,

-- Robert


More information about the tlbuild mailing list.