According to david: While burning my CPU.
> 
> dose any one know how to handle diff files
> eg
> 
>  i am installing & compiling the XFree86 source
> it works fine but i need to use the fixed files x.x.x.diff
> how do i use theas files

Firstly you could just install the binary from www.xfree86.org.

Basicly you could go to the directory where the to_be_patched_files are
located and use the -p option of patch to cut of the directory slashes if
nessasary as follows;

Most patch files are unified diffs and would have been created from the top
dir so the patch file contains a path like;
/X11R6/lib/XFree86-source
XFree86-source in this example contains the source files, copy the patch to
that directory and type 'patch -p3 < x.x.x.diff' -p3 eliminates the 3
directory slashes so then patch knows it must use the pwd.

If you have the diff file located in /X11R6 then 'patch -p1 < x.x.x.diff'
would be used, further more i would advise the use of the -s option, -s is
slient and will only output error messages to the console allowing you to
see if everything was ok, otherwise _ALL_ the text will scroll so fast over
the screen it will make you dizzy.

Go up one more dir, and you then use;

patch -p0 -s < x.x.x.diff

Do not use ">" instead of "<" otherwise you will remove the contents of the
patch file.

Of course 'man patch' will help/confuse you even more.


> 
> Thank you
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to