www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 103] New: -Dd does not generate subdirectories

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=103

           Summary: -Dd does not generate subdirectories
           Product: D
           Version: 0.150
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: benoit tionex.de


=> Error: Error writing file '....../..html'
I think this is a bug, because without creating subdirectories this option is
useless.


-- 
Apr 12 2006
parent reply Bruno Medeiros <brunodomedeirosATgmail SPAM.com> writes:
d-bugmail puremagic.com wrote:
 http://d.puremagic.com/bugzilla/show_bug.cgi?id=103
 
            Summary: -Dd does not generate subdirectories
            Product: D
            Version: 0.150
           Platform: PC
         OS/Version: Windows
             Status: NEW
           Severity: normal
           Priority: P2
          Component: DMD
         AssignedTo: bugzilla digitalmars.com
         ReportedBy: benoit tionex.de
 
 
 => Error: Error writing file '....../..html'
 I think this is a bug, because without creating subdirectories this option is
 useless.
 
 

The same can be said of other options, such as -od . I don't think this is a bug, it's more of a (mis)feature. Yes, I think it should create the dirs, but it can be fully worked around with some shell scripting. -- Bruno Medeiros - CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Apr 13 2006
next sibling parent Frank Benoit <keinfarbton nospam.xyz> writes:
 The same can be said of other options, such as -od . I don't think this
 is a bug, it's more of a (mis)feature. Yes, I think it should create the
 dirs, but it can be fully worked around with some shell scripting.
 

Right, but with this argument you can drop the whole option and move the html with your shell script to the right place.
Apr 13 2006
prev sibling parent reply "Derek Parnell" <derek psych.ward> writes:
On Fri, 14 Apr 2006 00:48:48 +1000, Bruno Medeiros  
<brunodomedeirosATgmail SPAM.com> wrote:

 d-bugmail puremagic.com wrote:
 http://d.puremagic.com/bugzilla/show_bug.cgi?id=103
             Summary: -Dd does not generate subdirectories
            Product: D
            Version: 0.150
           Platform: PC
         OS/Version: Windows
             Status: NEW
           Severity: normal
           Priority: P2
          Component: DMD
         AssignedTo: bugzilla digitalmars.com
         ReportedBy: benoit tionex.de
   => Error: Error writing file '....../..html'
 I think this is a bug, because without creating subdirectories this  
 option is
 useless.

The same can be said of other options, such as -od . I don't think this is a bug, it's more of a (mis)feature. Yes, I think it should create the dirs, but it can be fully worked around with some shell scripting.

I'll put that into Build ... if it sees -D<path> it will ensure the path exists before calling the compiler. -- Derek Parnell Melbourne, Australia
Apr 13 2006
next sibling parent Sean Kelly <sean f4.ca> writes:
Derek Parnell wrote:
 On Fri, 14 Apr 2006 00:48:48 +1000, Bruno Medeiros 
 <brunodomedeirosATgmail SPAM.com> wrote:
 
 d-bugmail puremagic.com wrote:
 http://d.puremagic.com/bugzilla/show_bug.cgi?id=103
             Summary: -Dd does not generate subdirectories
            Product: D
            Version: 0.150
           Platform: PC
         OS/Version: Windows
             Status: NEW
           Severity: normal
           Priority: P2
          Component: DMD
         AssignedTo: bugzilla digitalmars.com
         ReportedBy: benoit tionex.de
   => Error: Error writing file '....../..html'
 I think this is a bug, because without creating subdirectories this 
 option is
 useless.

The same can be said of other options, such as -od . I don't think this is a bug, it's more of a (mis)feature. Yes, I think it should create the dirs, but it can be fully worked around with some shell scripting.

I'll put that into Build ... if it sees -D<path> it will ensure the path exists before calling the compiler.

This would be great. As it stands now I have to do a "recursive copy, build tree but don't actually copy anything" before generating documentation remotely. Sean
Apr 13 2006
prev sibling next sibling parent Frank Benoit <keinfarbton nospam.xyz> writes:
 I'll put that into Build ... if it sees -D<path> it will ensure the path
 exists before calling the compiler.
 
 --Derek Parnell
 Melbourne, Australia

Only to clarify. The problem is not only the named path from -Dd<path>, the bug report should show, dmd is not generating the directory tree beneath that path, representing all packages.
Apr 13 2006
prev sibling parent Bruno Medeiros <brunodomedeirosATgmail SPAM.com> writes:
Derek Parnell wrote:
 On Fri, 14 Apr 2006 00:48:48 +1000, Bruno Medeiros 
 <brunodomedeirosATgmail SPAM.com> wrote:
 
 d-bugmail puremagic.com wrote:
 http://d.puremagic.com/bugzilla/show_bug.cgi?id=103
             Summary: -Dd does not generate subdirectories
            Product: D
            Version: 0.150
           Platform: PC
         OS/Version: Windows
             Status: NEW
           Severity: normal
           Priority: P2
          Component: DMD
         AssignedTo: bugzilla digitalmars.com
         ReportedBy: benoit tionex.de
   => Error: Error writing file '....../..html'
 I think this is a bug, because without creating subdirectories this 
 option is
 useless.

The same can be said of other options, such as -od . I don't think this is a bug, it's more of a (mis)feature. Yes, I think it should create the dirs, but it can be fully worked around with some shell scripting.

I'll put that into Build ... if it sees -D<path> it will ensure the path exists before calling the compiler. --Derek Parnell Melbourne, Australia

While you're at it, you might as well do the same for the other options too, like -od, right ? ;) -- Bruno Medeiros - CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Apr 14 2006