On Sun, Jan 06, 2002 at 02:35:44PM +0000, Pete French wrote:
> > Imagine we have a /usr/local/src/xmame-0.56.2 directory.
> > put the patch in /usr/local/src, bunzip2 it, and type :
> > patch -p0 < 0.56.2-0.57.1.diff
> 
> ah, so '-p0' is the magic option. It used to be that you just changed
> into the xmame source directory and did 'patch < difffile' as the
> diffs were in the same tree. do that now and it doesnt work. I also tried
> running thw patch from the directory above but that just left all the old
> and new files in my home directory ?!
> 
> thiugh the above method doesnt work for me either...
> 
> bash-2.05a$ patch -p0 < 0.56.1-0.57.1.diff
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -Nur xmame-0.56.1/makefile.unix xmame-0.57.1/makefile.unix
> |--- xmame-0.56.1/makefile.unix Tue Nov 13 21:13:38 2001
> |+++ xmame-0.57.1/makefile.unix Sat Jan  5 19:43:18 2002
> --------------------------
> File to patch:
> 
> is that because it is looking for the .56.1 directory despite being a .56.2
> patch ? So I tried renaming the directory tho get round that and got...

It's actually a patch from 0.56.1 -> 0.57.1.  The reason I did this was to 
keep the size of the patch reasonable, since a patch against 0.56.2 would 
be rather large because of all the MESS stuff that's missing in 0.57.1.

If anyone has suggestions on how to improve this, I'm willing to listen.  
Patches have always been a bit of hit-'n'-miss for me.  (Even applying 
other people's patches usually takes me two or three tries to get the 
directory right and the -p option right.)
_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to