digitalmars.D - Symlink to Latest dmd on the Digital Mars FTP
- Jacob Carlborg (4/4) Jan 13 2011 Could we get a symlink or something to the latest dmd release (one for
- Iain Buclaw (6/8) Jan 13 2011 http://ftp.digitalmars.com/dmd1beta.zip
- Michel Fortin (6/16) Jan 13 2011 They'll link to unstable versions from time to time.
- Jacob Carlborg (4/16) Jan 14 2011 That was what I assumed, they do have "beta" in the name.
- Michel Fortin (29/31) Jan 13 2011 I'm currently using this shell script inside the D for Xcode installer
- Jacob Carlborg (4/31) Jan 14 2011 I would hope to not have to use a "hack" like this. But thanks anyway.
- Michel Fortin (11/45) Jan 14 2011 I actually emailed Walter before writing this code, asking him if he
Could we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP? -- /Jacob Carlborg
Jan 13 2011
== Quote from Jacob Carlborg (doob me.com)'s articleCould we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Are apparently zips of the latest releases (download and diff'd them). Whether or not they are links is not for me to say. :) Regards
Jan 13 2011
On 2011-01-13 15:43:16 -0500, Iain Buclaw <ibuclaw ubuntu.com> said:== Quote from Jacob Carlborg (doob me.com)'s articleThey'll link to unstable versions from time to time. -- Michel Fortin michel.fortin michelf.com http://michelf.com/Could we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Are apparently zips of the latest releases (download and diff'd them). Whether or not they are links is not for me to say. :)
Jan 13 2011
On 2011-01-14 00:32, Michel Fortin wrote:On 2011-01-13 15:43:16 -0500, Iain Buclaw <ibuclaw ubuntu.com> said:That was what I assumed, they do have "beta" in the name. -- /Jacob Carlborg== Quote from Jacob Carlborg (doob me.com)'s articleThey'll link to unstable versions from time to time.Could we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Are apparently zips of the latest releases (download and diff'd them). Whether or not they are links is not for me to say. :)
Jan 14 2011
On 2011-01-13 15:07:41 -0500, Jacob Carlborg <doob me.com> said:Could we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?I'm currently using this shell script inside the D for Xcode installer (change the regex for DMD 1): DMD_FILE_REGEX='dmd.2.(\d+).zip' DMD_ARCHIVE_NAME=$(curl --fail http://www.digitalmars.com/d/download.html -s | perl -e ' $filename = ""; $vers = 0; while (<>) { if (/\bhttp:\/\/ftp\.digitalmars\.com\/('$DMD_FILE_REGEX')\b/) { if ($2 > $vers) { $vers = $2; $filename = $1; } } } print "$filename"; '); if [ $? != 0 ] || [ "$DMD_ARCHIVE_NAME" == "" ] then echo "Error retrieving current DMD version." exit -1 fi DMD_URL="http://ftp.digitalmars.com/$DMD_ARCHIVE_NAME" -- Michel Fortin michel.fortin michelf.com http://michelf.com/
Jan 13 2011
On 2011-01-14 00:32, Michel Fortin wrote:On 2011-01-13 15:07:41 -0500, Jacob Carlborg <doob me.com> said:I would hope to not have to use a "hack" like this. But thanks anyway. -- /Jacob CarlborgCould we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?I'm currently using this shell script inside the D for Xcode installer (change the regex for DMD 1): DMD_FILE_REGEX='dmd.2.(\d+).zip' DMD_ARCHIVE_NAME=$(curl --fail http://www.digitalmars.com/d/download.html -s | perl -e ' $filename = ""; $vers = 0; while (<>) { if (/\bhttp:\/\/ftp\.digitalmars\.com\/('$DMD_FILE_REGEX')\b/) { if ($2 > $vers) { $vers = $2; $filename = $1; } } } print "$filename"; '); if [ $? != 0 ] || [ "$DMD_ARCHIVE_NAME" == "" ] then echo "Error retrieving current DMD version." exit -1 fi DMD_URL="http://ftp.digitalmars.com/$DMD_ARCHIVE_NAME"
Jan 14 2011
On 2011-01-14 15:01:42 -0500, Jacob Carlborg <doob me.com> said:On 2011-01-14 00:32, Michel Fortin wrote:I actually emailed Walter before writing this code, asking him if he could add a way to get the latest version. He suggested I do that instead. In the real code there's also a fallback checking a file on my website that is supposed to contain the latest version number, but I'm not really keeping it up to date since this hack hasn't failed me yet. -- Michel Fortin michel.fortin michelf.com http://michelf.com/On 2011-01-13 15:07:41 -0500, Jacob Carlborg <doob me.com> said:I would hope to not have to use a "hack" like this. But thanks anyway.Could we get a symlink or something to the latest dmd release (one for d1 and one for d2) on the Digital Mars FTP?I'm currently using this shell script inside the D for Xcode installer (change the regex for DMD 1): DMD_FILE_REGEX='dmd.2.(\d+).zip' DMD_ARCHIVE_NAME=$(curl --fail http://www.digitalmars.com/d/download.html -s | perl -e ' $filename = ""; $vers = 0; while (<>) { if (/\bhttp:\/\/ftp\.digitalmars\.com\/('$DMD_FILE_REGEX')\b/) { if ($2 > $vers) { $vers = $2; $filename = $1; } } } print "$filename"; '); if [ $? != 0 ] || [ "$DMD_ARCHIVE_NAME" == "" ] then echo "Error retrieving current DMD version." exit -1 fi DMD_URL="http://ftp.digitalmars.com/$DMD_ARCHIVE_NAME"
Jan 14 2011