Stephan Hegel wrote:
A.J.Mechelynck wrote:
patch -p0 <patches/7.1.001
patch -p0 <patches/7.1.002
As long as you have two patches this can be done easily. But what
if you have 100+ ?
Then try this:
cat patches/7.1.* > patchfile
patch -p0 < patchfile
rm patchfile
Done.
Rgds,
Stephan.
If you have more than a hundred, Bram sets up recapitulative patches for one
hundred patchlevels at a time, so if you want to patch plain-vanilla 7.0 to
compile 7.0.233 you would do
gunzip -c patches/7.0.001-100.gz |patch -p0
gunzip -c patches/7.0.101-200.gz |patch -p0
patch -p0 <patches/7.0.201
patch -p0 <patches/7.0.202
patch -p0 <patches/7.0.203
etc.
With command-line editing, you can recall the latest command and change only
the last (or the last two) digit(s) every time.
But normally you would download and implement the patches a few at a time as
they are published, and there would never be many of them at any one time,
except maybe the first time you compile Vim; so now (that there aren't many
patches to the latest version) is a good time to start.
- Using "cat" is OK as long as you can be sure that you'll get them in numeric
order: this is usually the case on Unix but not necessarily on Dos, where a
wildcarded filename usually gets its results in directory order, not sorted by
filename.
- By patching individually, if one of the patches fails horribly you may
decide not to try the following.
- Usually there aren't more than a handful of _new_ patches anyway, so (except
when starting from scratch with many patches already published) it's hardly
worth the trouble going to a cat step.
Best regards,
Tony.
--
Justice, n.:
A decision in your favor.