<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 2:23 AM, Jason White via Digitalmars-d-announce <span dir="ltr"><<a href="mailto:digitalmars-d-announce@puremagic.com" target="_blank">digitalmars-d-announce@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On Monday, 20 June 2016 at 08:21:29 UTC, Dicebot wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
On Monday, 20 June 2016 at 02:46:13 UTC, Jason White wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
This actually sounds nice. Main problem that comes to my mind is that there is no cross-platform shell script. Even if it is list of plain unconditional commands there are always differences like normalized path form. Of course, one can always generate `build.d` as a shell script, but that would only work for D projects and Button is supposed to be a generic solution.<br>
</blockquote>
<br>
I'd make it so it could either produce a Bash or Batch script. Possibly also a PowerShell script because error handling in Batch is awful. That should cover any platform it might be needed on. Normalizing paths shouldn't be a problem either.<br>
<br>
This should actually be pretty easy to implement.<br>
</blockquote>
<br>
Will plain sh script script also work for MacOS / BSD flavors? Committing just two scripts is fine but I wonder how it scales.<br>
</blockquote>
<br></div></div>
FYI, I implemented this feature today (no Batch/PowerShell output yet though):<br>
<br>
    <a href="http://jasonwhite.github.io/button/docs/commands/convert" rel="noreferrer" target="_blank">http://jasonwhite.github.io/button/docs/commands/convert</a><br>
<br>
I think Bash should work on most Unix-like platforms.<br>
</blockquote></div><br></div><div class="gmail_extra">And there is this[0] for windows, if you wanted to try bash on windows:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">[0]: <a href="https://msdn.microsoft.com/en-us/commandline/wsl/about">https://msdn.microsoft.com/en-us/commandline/wsl/about</a><br></div><div class="gmail_extra"><br></div></div>