Welcome to Web-News
A Web-based News Reader
Subject Re: Batch files for running multiple DMD versions?
From Lawrence Hemsley <lawrence.hemsley@gmail.com>
Date Wed, 18 Feb 2009 15:26:01 -0800
Newsgroups digitalmars.D.learn

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.

Recent messages in this thread
 
-# Batch files for running multiple DMD versions? Burton Radons 17-Feb-2009 07:43 pm
.-# Re: Batch files for running multiple DMD versions? Burton Radons 17-Feb-2009 08:42 pm
.|\# Re: Batch files for running multiple DMD versions? Jarrett Billingsley 17-Feb-2009 08:51 pm
.-# Re: Batch files for running multiple DMD versions? (Current message) Lawrence Hemsley 18-Feb-2009 06:26 pm
..-# Re: Batch files for running multiple DMD versions? Lawrence Hemsley 18-Feb-2009 06:41 pm
...\# Re: Batch files for running multiple DMD versions? Sergey Gromov 19-Feb-2009 08:55 pm