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

Robert Alessi alessi at robertalessi.net
Sun Mar 17 13:24:46 CET 2024


On Sun, Mar 17, 2024 at 11:13:36AM +0100, Robert Alessi wrote:
> Hi,
> 
> This is about TeX Live 2024 on OpenBSD.

[Replying to myself]

I just installed TL24 on Devuan and all 4 symlinks

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

have been created.  Why?

[sigh]

-- R

> 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.