Is there a generic way to convert a shell script under MSYS/MinGW into a windows .exe
file (which calls the shell script behind the scene)?
The specific problem I am facing is that I have a shell script lein
from Leiningen (clojure tool chain). I installed it to the default path at /usr/local/bin
(note: I used the shell script version for MSYS, and didn't want to install lein
command outside the MinGW/MSys tree).
Now emacs cider cannot pick up the lein
script although lein
is on the windows path and exec-path
. If I copy lein
into a fake lein.exe
cd /usr/local/bin && cp lein lein.exe
then, cider
recognizes lein.exe
. But of course, cider
couldn't load it because it's not a valid exe
.
Hence, my question. Is there a generic way I can convert a shell script like lein
into a windows executable, e.g. by writing a proxy c++ program?
Thanks.
-- EDIT ---
(Thoughts after seeing the downvotes).
I know this is a corner case and maybe not something you do everyday, and but this is the best solution I can identify so far for making a workable clojure tool chain in MinGW/MSYS.