digitalmars.D.learn - Batch files for running multiple DMD versions?
- Burton Radons (1/1) Feb 17 2009 Does anyone have a batch file setup for running multiple DMD versions, t...
- Burton Radons (1/1) Feb 17 2009 Pha I just realised I was massively overengineering the whole damned thi...
- Jarrett Billingsley (3/4) Feb 17 2009 WHEN IS THE NEXT VERSION OF UNDIG COMING OUT
- Lawrence Hemsley (34/35) Feb 18 2009 I use batch files to switch between dmd 1 versions with the
- Lawrence Hemsley (4/49) Feb 18 2009 This link will go to the download page of the junction
- Sergey Gromov (4/55) Feb 19 2009 I use junction, too, to switch between DMDs.
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.
Feb 17 2009
Pha I just realised I was massively overengineering the whole damned thing. I don't need to install stuff, I just needed to push the different versions of DMD into their own separate paths with a common structure for the aliases. Duh!
Feb 17 2009
On Tue, Feb 17, 2009 at 8:42 PM, Burton Radons <burton.radons gmail.com> wrote:Pha I just realised I was massively overengineering the whole damned thing. I don't need to install stuff, I just needed to push the different versions of DMD into their own separate paths with a common structure for the aliases. Duh!WHEN IS THE NEXT VERSION OF UNDIG COMING OUT I kid, I kid. I had no idea you were still using D ;)
Feb 17 2009
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.
Feb 18 2009
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.
Feb 18 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 junction, too, to switch between DMDs. The 'junction -d' is not required. Simply overwriting a link works just fine.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.
Feb 19 2009