[Linux-disciples] patch(1)
Stephen R Laniel
steve at laniels.org
Wed Jul 5 10:45:16 EDT 2006
On Thu, Jun 29, 2006 at 09:40:08AM -0400, Adam Rosi-Kessel wrote:
> cd ~/code
> diff -u -r old_version old_patched_version > p.diff
> cd new_version
> cat ../p.diff | patch -p1
That did the trick for me; thanks, Adam.
One little question: what if the directories that we're
diffing have different numbers of slashes? How many slashes
do we cut out with '-p'? I had five slashes in one of the
paths and seven in the other, so I added a directory called
'foo/foo' to make the slashes line up. Is there a better
way?
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060705/7615c096/attachment.pgp
More information about the Linux-disciples
mailing list