Thread overview
[Bug 103] New: -Dd does not generate subdirectories
Apr 12, 2006
d-bugmail
Apr 13, 2006
Bruno Medeiros
Apr 13, 2006
Frank Benoit
Apr 13, 2006
Derek Parnell
Apr 13, 2006
Sean Kelly
Apr 13, 2006
Frank Benoit
Apr 14, 2006
Bruno Medeiros
April 12, 2006
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.


-- 

April 13, 2006
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
April 13, 2006
> 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.
April 13, 2006
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
April 13, 2006
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
April 13, 2006
> 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.


April 14, 2006
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