<div dir="ltr">If you decide to have a shell script + windows batch, you must have two scripts and keep them in sync. Perl is good but tlperl is not a complete implementation, it is not guaranteed to support everything. \write18 may be disabled by some users for security reasons or only a selected group of scripts may be allowed. Thus luatex is the best choice for many reasons. Lua code may be a part of your latex package or you can offer standalone lua code nad a latex package without lua.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 16:02 GMT+02:00 Leo Liu <span dir="ltr"><<a href="mailto:leoliu.pku@gmail.com" target="_blank">leoliu.pku@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If a windows batch file is not powerful enough or difficult to write, I guess<br>
it is better to write a perl script so that Windows users can use tlperl<br>
to run that script, no dependencies are needed then.<br>
<span class="HOEnZb"><font color="#888888"><br>
Leo<br>
</font></span><div class="im HOEnZb"><br>
-----Original Message-----<br>
From: tex-live [mailto:<a href="mailto:tex-live-bounces@tug.org">tex-live-bounces@tug.org</a>] On Behalf Of Josef Kleber<br>
Sent: Monday, May 19, 2014 9:39 PM<br>
To: TeX Live<br>
Subject: [tex-live] TeXLive (Windows) bash script -> exe<br>
<br>
</div><div class="HOEnZb"><div class="h5">Hi,<br>
<br>
i wrote a bash script osmimage<br>
(<a href="http://jklatex.square7.de/download/osmimage" target="_blank">http://jklatex.square7.de/download/osmimage</a>), which downloads an<br>
OpenStreetMap specified by options.<br>
<br>
Furthermore, i plan to write a LaTeX package, which uses this script via<br>
\write18 (see:<br>
<a href="http://tex.stackexchange.com/questions/178883/write18-encoding" target="_blank">http://tex.stackexchange.com/questions/178883/write18-encoding</a>).<br>
<br>
The Windows version of TeXLive can not execute bash scripts as such. But<br>
i know you can provide a xxx.exe which executes the bash script xxx, as<br>
my installfont-tl.<br>
Is it enough to kindly ask that you create such an exe or is there<br>
something i can do?<br>
The script is not very fancy: command line options -> set defaults -><br>
some checks -> construct URL -> wget<br>
<br>
Without the exe the only possibility to make it run on Windows is to<br>
install not just Cygwin but also its TeXLive package. The Windows<br>
version executes \write18 in cmd.exe! So you end up having two TeX<br>
distributions installed. Very, very ugly from a user's point of view.<br>
<br>
Josef<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zdeněk Wagner<br><a href="http://hroch486.icpf.cas.cz/wagner/" target="_blank">http://hroch486.icpf.cas.cz/wagner/</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a>
</div>