Re: patching from different directory

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



Carlos Santana wrote:
> Thanks Filipe.
>
> I can do it by cd-ing into file-to-be-patched dir. I think the -d
> switch in patch command does similar thing (cd). But then it assumes
> diff file also to be present in that new directory.
>
> I guess the problem is not having full dir path in the diff file
> itself. The diff file mentions only file name. How do I get full path
> in my diff file? Any clues?

Could another option be to pipe the diff into patch via STDIN ?

cat /path/to/filename.diff | patch -p0

or something.

nate


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux