Batch files for running multiple DMD versions?
Sergey Gromov
snake.scaly at gmail.com
Thu Feb 19 17:55:22 PST 2009
Wed, 18 Feb 2009 15:41:34 -0800, Lawrence Hemsley wrote:
> This link will go to the download page of the junction
> utility. Has usage on it also.
>
> http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
>
> Lawrence Hemsley wrote:
>> I use batch files to switch between dmd 1 versions with the three
>> different libraries: phobes, tango, and tangobos. However, you can use
>> it to switch from dmd ver 1 and dmd ver 2 also.
>>
>> The batch file I use for tangobos is inserted below and the form of all
>> the batch files are the same.
>>
>> 1. The folder c:\dmd\bin and c:\dm\bin are included on the path
>> environment variable.
>>
>> 2. The folder c:\dmd is used as a symbolic link to which ever batch file
>> is run. It the tangobos batch file is run the symbolic link is to
>> c:\dmd-tangobos where dmd with the library tangobos is stored.
>> C:\dmd-tango is the folder that uses the tango library and c:\dmd-phobos
>> is the folder that uses phobos library. c:\dmd-2.05 can be a folder that
>> uses the version 2 dmd. (I actually have that one in my D drive.
>>
>> 3. The utility called junction is used to unset and set the symbolic
>> links. Junction is available free from microsoft you just go the
>> download or support or msdn or technet dot microsoft.com and search for
>> it as in support.microsoft.com
>>
>> I put shortcuts of each batch file on the desktop so if I am testing or
>> writing code with the tangobos library I double click the correct
>> shortcut before compiling the code and the correct library is used.
>>
>> @echo off - tangobos.bat
>> rem - Sets the environment for using the tangobos library
>> rem - with the dmd compiler called with either dfl.exe with
>> rem - entice designer or dsss.exe or bud.exe for command
>> rem - line programs
>>
>> rem - unlink any dir to the symbolic link of dmd directory
>> junction -d c:\dmd
>>
>> rem - set symbolic link to of dmd directory to dmd-phobos directory
>> junction c:\dmd c:\dmd-tangobos
>>
>> Burton Radons wrote:
>>> Does anyone have a batch file setup for running multiple DMD versions,
>>> that works with 2.025's refit? Specifically I want DMD 1.0, DMD 2.0,
>>> Tango, and Other, that can be run to install new versions when they're
>>> released and allow me to run "dmd-2.0" or "bud-tango" and it'll just
>>> work. I'm like 70% done already but I thought I'd use someone else's
>>> wheel for once, if it exists.
I use junction, too, to switch between DMDs.
The 'junction -d' is not required. Simply overwriting a link works just
fine.
More information about the Digitalmars-d-learn
mailing list