Re: What to do when new version available upstream...
On Mon, 1 Mar 1999, Josip Rodin wrote:
> On Mon, Mar 01, 1999 at 08:55:57AM +0000, Jules Bean wrote:
> > > I usually extract the new one (or apply a patch if that is the method),
> > > gunzip -dc old_version.diff.gz > somefile, then edit that 'somefile' and
> > > replace all instances of progdirectory-1.2.0 with progdirectory-1.2.1.
> > > Then apply that new diff with patch -p0 < somefile. And then clean up the
> > > .rej and .orig files and apply the missing stuff manually.
> >
> > The editing isn't necessary.
> >
> > Simply patch -p1 < somefile and it will ignore the first directory
> > component (the versioned directory).
>
> Cool! So, I should just do
> cd prog-oldversion; zcat ../prog_oldversion.diff.gz | patch -p1
> and it will work? I'll try.
cd prog-newversion; zcat ../prog_oldversion.diff.gz | patch -p1
that should be.
Jules
/----------------+-------------------------------+---------------------\
| Jelibean aka | jules@jellybean.co.uk | 6 Evelyn Rd |
| Jules aka | jules@debian.org | Richmond, Surrey |
| Julian Bean | jmlb2@hermes.cam.ac.uk | TW9 2TF *UK* |
+----------------+-------------------------------+---------------------+
| War doesn't demonstrate who's right... just who's left. |
| When privacy is outlawed... only the outlaws have privacy. |
\----------------------------------------------------------------------/
Reply to: