On 1/30/15 12:45 PM, Brad Roberts via Digitalmars-d wrote:
On 1/30/2015 12:39 PM, Jacob Carlborg via Digitalmars-d wrote:
On 2015-01-30 15:59, Andrei Alexandrescu wrote:

That would be nice. -- Andrei

I agree. I wouldn't need to screen scrape dlang.org in DVM.


I'd be much more inclined to keep a file called LATEST with the version
number in it than having to maintain a ton of redirects each time.

(not present yet, but for example)
http://downloads.dlang.org/releases/LATEST containing one line:
2.066.1

Does require two trips to get the file you want, but less maintenance
issues.

That's already available by scanning the dmd tags in github. We do that in dlang.org/posix.mak:

LATEST:=$(shell cd ${DMD_DIR} && \
  git fetch --tags ${GIT_HOME}/dmd && \
  git tag | grep '^v[0-9][0-9.]*$$' | sed 's/^v//' | sort -nr | head -n 1)


Andrei

Reply via email to