Open pablgonz opened 4 years ago
Now the idea is complete, the detection proposed under git win
is to be able to make some tests on the script using l3build
, I put a quite simple example (just to understand the idea).
(I tried to create a temporary directory, but, it behaved differently in win/linux and didn't allow me to use run
)
SearchRegistry
function call was removed undercygwin
Searchbyregquery
function to detect gs executable undermsys
(git bash)gs
(reduce time to autodetect)build.lua
To do the tests I used
The output under msys without having gs in PATH:
The output under msys having gs in PATH:
The output under cygwin:
I have left in comments the changes I have added, the changes only affect users who use
perl pdfcrop
and not those who use the direct version provided in TeXLive.You can remove the detection of some old architectures (dos
,os2
) and some executable names for gs (gsc
,gs386
,gsos2
), but, I don't know what level of backwards compatibility you want to have.One thing I didn't manage to test was to removegs
from the list of ghostscript executable names for miktex (and windows), if anyone has miktex they might be able to do the test.