Downloading Latest D Language DMD compiler via Windows 10 batch script file.
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Dec 17 18:32:30 UTC 2019
On Tue, Dec 17, 2019 at 06:08:05PM +0000, Eugene Wissner via Digitalmars-d wrote:
[...]
> This is the same thing GNOME does. And it allows to automate compiler
> updates and allows to figure out what is the latest version (useful
> for tools). "dmd-latest.deb" or similar is more useful for human
> beings but is less "generic" approach since a tool wouldn't know what
> version it is.
[...]
Not really. The idea is this:
1) Have a fixed URL that never changes, that always points to the latest
release. So your script doesn't have to figure out anything, just
download from the fixed URL.
2) Use HTTP 307 to redirect the fixed URL to the actual URL, so that the
downloaded filename will have the correct version embedded.
3) The script can parse the filename to figure out what the version is.
T
--
Without geometry, life would be pointless. -- VS
More information about the Digitalmars-d
mailing list