DVM - D Version Manager

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Tue Jan 25 05:32:42 PST 2011


On Tue, 25 Jan 2011 08:22:40 -0500, Steven Schveighoffer wrote:

> On Tue, 25 Jan 2011 03:22:22 -0500, Lars T. Kyllingstad
> <public at kyllingen.nospamnet> wrote:
> 
>> On Tue, 25 Jan 2011 09:14:06 +0100, Don wrote:
>>
>>> Nick Sabalausky wrote:
>>>> "Jacob Carlborg" <doob at me.com> wrote in message
>>>> news:ihkvrr$1l02$1 at digitalmars.com...
>>>>> 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.

Ah, forgot about dmd.conf.  I always install DMD in the /usr/local tree 
and define DFLAGS as an environment variable.

Does it look in the executable directory on Linux too?  If so, does that 
take precedence over /etc/dmd.conf and environment variables?

-Lars


More information about the Digitalmars-d-announce mailing list