Re: cvs diff patch with new directories

2020-08-26 Thread Elias M. Mariani
That's right.
Thanks!

A new diff coming soon then. ;)

On Wed, Aug 26, 2020 at 4:54 PM Stuart Henderson  wrote:
>
> patch -Ep0
>
> On 26 August 2020 20:32:11 "Elias M. Mariani"  wrote:
>
>> Hi ports@,
>> Sorry for this silly question.
>> I'm trying to generate a diff file for an upcoming x11/lxqt update.
>> But if I use "cvs diff > file.diff" and then try to apply it with
>> "patch < file.diff" the new directories (*/patches) are not generated
>> and the files just... drop in the working directory. (why?)
>> The problem goes away if I create the "patches" directories manually.
>> Is there a secret flag on cvs diff or patch to generate those directories ?
>> I tried looking in man cvs, rcsdiff and patch but I didn't find an
>> answer. And my almost zero experience with cvs is not making this
>> easier. :)
>>
>> Cheers.
>> Elias mariani@
>
>



Re: cvs diff patch with new directories

2020-08-26 Thread Stuart Henderson

patch -Ep0

On 26 August 2020 20:32:11 "Elias M. Mariani"  wrote:


Hi ports@,
Sorry for this silly question.
I'm trying to generate a diff file for an upcoming x11/lxqt update.
But if I use "cvs diff > file.diff" and then try to apply it with
"patch < file.diff" the new directories (*/patches) are not generated
and the files just... drop in the working directory. (why?)
The problem goes away if I create the "patches" directories manually.
Is there a secret flag on cvs diff or patch to generate those directories ?
I tried looking in man cvs, rcsdiff and patch but I didn't find an
answer. And my almost zero experience with cvs is not making this
easier. :)

Cheers.
Elias mariani@




Re: cvs diff patch with new directories

2020-08-26 Thread Theo Buehler
On Wed, Aug 26, 2020 at 04:31:32PM -0300, Elias M. Mariani wrote:
> But if I use "cvs diff > file.diff" and then try to apply it with
> "patch < file.diff" the new directories (*/patches) are not generated
> and the files just... drop in the working directory. (why?)

See the documentation of patch's -p flag (in fact, patch defaults to
-p 957).

Try 'patch -p 0 < file.diff'.