This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Applying snapshot diff.gz files - How?
- To: GDB Mailing List <gdb at sourceware dot cygnus dot com>
- Subject: Re: Applying snapshot diff.gz files - How?
- From: Laurent Duperval <lduperval at microcelli5 dot com>
- Date: Mon, 30 Apr 2001 07:35:35 -0400 (EDT)
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