This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Applying snapshot diff.gz files - How?


On 28 Apr, SHwareSyst@aol.com wrote:
> Hello, 
> 
>  I'm a relative newcomer to using UNIX based tools, e.g. diff and patch,
> so 
> I was wondering what the bash command line is for applying a diff file
> from 
> the gdb snapshots?? Assume week.tar.bz has been untbz'ed to /src/week/
> and 
> the diff file week-nextweek.diff.bz has been unpacked there also 
> (/src/week/week-nextweek.diff). I'd like to get, effectively, the same
> files 
> as unpacking nextweek.tar.bz over /src/week/. 
> 

patch < nextweek.diff

You may need to use patch -p1 < nextweek.diff

Your best bet, of course, is to use CVS which will do all this stuff for you
automatically. What's more, if for some reason you skip a week, you won't
have to fetch a whole lot of patch files to apply.

L

-- 
Laurent Duperval <mailto:lduperval@microcelli5.com>

On ne donne pas d'ordre à un génie de mon calibre.
                                          -Léonard le génie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]