[Linux-disciples] patch(1)

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Jul 5 12:30:22 EDT 2006


Stephen R Laniel wrote:
> On Wed, Jul 05, 2006 at 12:21:28PM -0400, Dylan Thurston wrote:
>> According to the man patch, '-p' cuts out equal numbers of slashes from
>> both sets of file names.
> Right. This is the difficulty that I'm trying to get around.
> I diffed the directories like so:
> diff -r /home/slaniel/wordpress/wordpress-2.0.2-orig/ /home/slaniel/svn/budgetblog/trunk/htdocs/ > difffile
> The first directory has five slashes in it, whereas the
> second has seven. So when I do

I see. I think the best practice is to just set up your directories as in my
example. E.g.

cd /tmp
ln -s /home/slaniel/wordpress/wordpress-2.0.2-orig old
ln -s /home/slaniel/svn/budgetblog/trunk/htdocs new
diff -u -r old new > patch


More information about the Linux-disciples mailing list