Jump to page: 1 25  
Page
Thread overview
DVM - D Version Manager
Jan 24, 2011
Jacob Carlborg
Jan 25, 2011
Nick Sabalausky
Jan 25, 2011
Don
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Vladimir Panteleev
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Andrej Mitrovic
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Andrej Mitrovic
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Jérôme M. Berger
Jan 25, 2011
Jacob Carlborg
Jan 25, 2011
Lutger Blijdestijn
Jan 25, 2011
Jérôme M. Berger
Jan 26, 2011
Jacob Carlborg
Jan 25, 2011
Jesse Phillips
Jan 26, 2011
Jacob Carlborg
Jan 26, 2011
Russel Winder
Jan 26, 2011
Jesse Phillips
Jan 26, 2011
Brad
Jan 26, 2011
Jacob Carlborg
Jan 26, 2011
Jacob Carlborg
Jan 26, 2011
Nick Sabalausky
Jan 26, 2011
Jacob Carlborg
Jan 26, 2011
Michel Fortin
Jan 27, 2011
Jacob Carlborg
Jan 27, 2011
Daniel Gibson
Jan 26, 2011
Daniel Gibson
Jan 26, 2011
Jacob Carlborg
Jan 26, 2011
Jérôme M. Berger
Jan 26, 2011
Jacob Carlborg
Jan 27, 2011
Jérôme M. Berger
Jan 28, 2011
Jacob Carlborg
January 24, 2011
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

-- 
/Jacob Carlborg
January 25, 2011
"Jacob Carlborg" <doob@me.com> wrote in message news:ihkvrr$1l02$1@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 ;)



January 25, 2011
Nick Sabalausky wrote:
> "Jacob Carlborg" <doob@me.com> wrote in message news:ihkvrr$1l02$1@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

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

> Nick Sabalausky wrote:
>> "Jacob Carlborg" <doob@me.com> wrote in message news:ihkvrr$1l02$1@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?

-Lars
January 25, 2011
On 2011-01-25 01:43, Nick Sabalausky wrote:
> "Jacob Carlborg"<doob@me.com>  wrote in message
> news:ihkvrr$1l02$1@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 ;)

The plan is to have a version for Windows, the D code is written with a Windows in mind. But the problem is the bash scripts, I'm  not sure if a Windows version is possible. Bash scripting is vastly superior to batch scripting. For example, I don't know if there is any batch equivalent to the following in bash:

* The "source" function/command
* .bashrc/bash_profile

In batch there is the "call" function but I don't know if it will retain any environment variables set by called the script.

There exists a key (or what it's called) in the Windows register where you can add a path to a script that will be executed when the user logs in, opens cmd or something like that.

-- 
/Jacob Carlborg
January 25, 2011
On Tue, 25 Jan 2011 10:46:45 +0200, Jacob Carlborg <doob@me.com> wrote:

>  But the problem is the bash scripts, I'm  not sure if a Windows version is possible.

For what it's worth, I'm a FAR Manager user, and I've written myself a FAR plugin to solve this problem (and for other toolkits too):

http://blog.thecybershadow.net/2010/04/02/envman-far-plugin-to-manage-your-environment/

-- 
Best regards,
 Vladimir                            mailto:vladimir@thecybershadow.net
January 25, 2011
On Tue, 25 Jan 2011 03:22:22 -0500, Lars T. Kyllingstad <public@kyllingen.nospamnet> wrote:

> On Tue, 25 Jan 2011 09:14:06 +0100, Don wrote:
>
>> Nick Sabalausky wrote:
>>> "Jacob Carlborg" <doob@me.com> wrote in message
>>> news:ihkvrr$1l02$1@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.

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


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

http://www.digitalmars.com/d/2.0/dmd-linux.html#dmd_conf

-Steve
January 25, 2011
On Tue, 25 Jan 2011 08:48:25 -0500, Steven Schveighoffer wrote:

> On Tue, 25 Jan 2011 08:32:42 -0500, Lars T. Kyllingstad <public@kyllingen.nospamnet> wrote:
> 
> 
>> Does it look in the executable directory on Linux too?  If so, does that take precedence over /etc/dmd.conf and environment variables?
> 
> http://www.digitalmars.com/d/2.0/dmd-linux.html#dmd_conf

Ah, thanks.  I'll RTFM next time. ;)

-Lars
« First   ‹ Prev
1 2 3 4 5