coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make install -D create directories if -t


From: Pádraig Brady
Subject: Re: make install -D create directories if -t
Date: Wed, 11 Jun 2014 10:02:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 06/11/2014 08:21 AM, Bernhard Voelker wrote:
> On 06/11/2014 12:27 AM, Pádraig Brady wrote:
>> On 06/10/2014 11:10 PM, Bernhard Voelker wrote:
>>> The attached patch implements this.
>>>
>>> BTW: the Texinfo manual was falsely stating that [g]install
>>> would ignore the -D option when -t was given (instead, it
>>> complained with ENOENT for the target_directory):
>>>
>>>    `-D'
>>>       Create any missing parent directories of DEST, then copy SOURCE to
>>>       DEST.  This option is ignored if a destination directory is
>>>       specified via `--target-directory=DIR'.
>>
>> I've not looked in detail, but on the face of it
>> -D should be able to create the single dir (hierarchy),
>> either specified implicitly with DEST, or explicitly with -t.
> 
> Do you think it's worth amending with this?
> 
> diff --git a/doc/coreutils.texi b/doc/coreutils.texi
> index bcd2b2e..710729b 100644
> --- a/doc/coreutils.texi
> +++ b/doc/coreutils.texi
> @@ -9071,6 +9071,8 @@ Ignored; for compatibility with old Unix versions of 
> @command{install}.
>  @opindex -D
>  Create any missing parent directories of @var{dest},
>  then copy @var{source} to @var{dest}.
> +In combination with --target-directory=@var{dir}, each missing directory
> +of @var{dir} - including that - is created.

Yes it's worth the clarification. How about:

  Explicitly specifying the --target-directory=@var{dir} will similarly
  ensure the presence of that hierarchy before copying @var{source} arguments.

thanks!
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]