Downloading Latest D Language DMD compiler via Windows 10 batch script file.
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Dec 17 17:39:42 UTC 2019
On Tue, Dec 17, 2019 at 04:55:56PM +0000, BoQsc via Digitalmars-d wrote:
> Initialy I though about a way to download DMD compiler on a single
> line of command prompt.
> However it turned out that dlang website makes downloading the latest
> version a complex thing.
Why is that?
IMO, we should have a fixed URL, something like
http://dlang.org/download/dmd-latest-$OS.zip, that always points to the
latest release. That way people can just download from there without
having to figure out what the latest version number is.
On the server side, we could use a HTTP 307 (temporary redirect) from
that URL to whatever the latest release is, so that the browser /
downloader will get the correct filename, and won't cache old releases
Questions are the beginning of intelligence, but the fear of God is the beginning of wisdom.
More information about the Digitalmars-d