[tex-live] ctan-o-mat symlink
Reinhard Kotucha
reinhard.kotucha at web.de
Tue Mar 13 23:24:09 CET 2018
On 2018-03-12 at 23:44:23 +0100, Gerd Neugebauer wrote:
>
> > On 12 March 2018 at 23:24 Karl Berry <karl at freefriends.org> wrote:
>
> > Hi Gerd
>
> Hi Karl,
>
> > - how about changing the first line of ctan-o-mat.pl to be
> > #!/usr/bin/env perl
> > (and adding use warnings; if you like)? Then there is no need for a
> > wrapper. This is what essentially all the other perl/python/whatever
> > scripts do ...
>
> I will do this as fallback in addition. Nevertheless it solves only
> part of the problem. Older UNIXes do not have /usr/bin/env
Hi Gerd,
all scripts shipped with TeX Live are using /usr/bin/env on Unix and
nobody complained so far. I suppose that none of the old Unices you
have in mind is supported by TeX Live for at least more than one or
even two decades and ...
> and it will definitely not work on Windows.
... for Windows there are wrappers anyway. See
.../bin/win32/runscript.tlu
This wrapper is actually a replacement for missing symlinks on
Windows, though it does a little bit more. Please read the comments
whithin the script if you are interested in the details.
If you add a new script to TeX Live, all you have to do is to add a
shebang line (#!/usr/bin/env <interpreter>) for Unix. There is no
need to worry about Windows. The script will be invoked by the
runscript wrapper anyway.
I'm looking forward to meet you at Dante-2018,
Reinhard
--
------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha at web.de
------------------------------------------------------------------
More information about the tex-live
mailing list