On Tue, 25 Jan 2011 03:22:22 -0500, Lars T. Kyllingstad <[email protected]> wrote:

On Tue, 25 Jan 2011 09:14:06 +0100, Don wrote:

Nick Sabalausky wrote:
"Jacob Carlborg" <[email protected]> wrote in message
news:[email protected]...
I've created a tool that installs and manages D compilers and
different versions.

Description:

DVM allows you to easily download and install D compilers and manage
different versions of the compilers. When you switch D compiler with
the "use" command the compiler will only be available in the current
shell. This allows you to have one version of the compiler in one
shell and another version in another shell. For example, have a D1
version in one shell and a D2 version in another.

The tool is available at bitbucket: https://bitbucket.org/doob/dvm The
wiki contains installation and usage instructions:
https://bitbucket.org/doob/dvm/wiki/Home

Platforms: currently only Posix


Yay! That sounds great!

This is the second thing this week that I'd been intending to do and
have been thrilled to be beaten to the punch :)

You can bet I'll take a crack at porting it to
windows...uhhh...assuming I can find the time...heh ;)



FWIW, I just copy all the versions of dmd into olddmd/dmd2051, etc, and
then use a trivial batch file. (Uses junction from sysinternals to make
a symlink).
---
@junction c:\dmd c:\olddmd\dmd%1 > nul @if not errorlevel 0 echo don't
have version %1 ---
eg, usedmd 2051

Won't the script have to somehow set the import and library paths as
well, so that DMD finds its corresponding druntime/phobos versions?

No, dmd uses the config file in the same directory as the exe. This config file contains those paths.

-Steve

Reply via email to