Porting Windows Batch (BAT) to Mac OS X shell scripts (SH) ?
I used to rely on bat scripts wrapped into exe launcher heavily and use them to avoid messing with visual studio and coding when i need to make some simple programs.
So in this case i only notepad++, exe wrapper and maybe few extra command line tools if such function not supported by cmd by default.
But this time i need to port my bat script to Mac OS X (and preferably to wrap them into some launcher), and i dont know a thing about how to do this and what behavior i should expect and how things works on macs these days.
I found this document http://www.macs.hw.ac.uk/~hwloidl/docs/ ... batch.html
about conversion of some common commands,
and thishttps://developer.apple.com/library/mac ... ction.html
Well i can figure something out with this, but im thinking about another problem - i use modified rar sfx executables for installers and few more purposes, and i cant find any equivalent of this for mac, also as part of interface i use buil-in Tridend (mshtml) frame which acts like IE within UI (especially useful for making non system default looking scrollbars).
So im thinking how i could combine sh, bat and exe with some Wine-powered exe wrapper for Mac?
Which one of them properly supports emulation of cmd.exe calls bat scripts?
Should i waste time porting bat to sh or i could use some wine-powered wrappers for everything?
Anyone tried something like this?
I had limited expirience with cinder-like wrappers long ago on mac, wrapped several windows games to make them run on his mac, but there was niether bat files, nor chain of exe>bat>exe>bat calls, also i dont even remember this process quite well. And yet another problem - this time i dont have any access to Mac and need to make everything within windows, blindly or emulated.
Any tips, suggestions, links, automated conversion tools and everything appreciated! Thanks!