gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] GNU Go 3.1.11


From: Daniel Bump
Subject: Re: [gnugo-devel] GNU Go 3.1.11
Date: Mon, 22 Oct 2001 10:03:42 -0700

> I've been unable to apply my own patches using patch, without having
> to manually specify the file name.  I cd to the "gnugo" directory,
> and try "patch -p1 < trevor_1_12.1", with various -p values, but 
> patch can never find utils/gg_utils.c, and prompts for it.  Am I
> missing a patch parameter, or am I running patch from the wrong
> directory?

The p parameter tells patch to drop some parameters from the
path name. Here's how I applied this patch.

$ cvs co -d gnugo-3.1.12 gnugo
$ cd gnugo-3.1.12
$ patch -p0 <../current/trevor_1_12.1

This is correct because the directory of the first patch is
utils/gg_utils.c Relative to the current directory that's
where you want to be . If it said (for example)
../gnugo-3.1.11/utils/gg_utils.c then patch -p1 would work. Occasionally
someone's sent a patch that you have to use -p2 or cd regressions/ first.

Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]