[Zope] OT: using 'patch' with wildcards

Jean Jordaan jean@upfrontsystems.co.za
Wed, 17 Oct 2001 12:19:26 +0200


Hi all

I'm trying to learn what I can about using CVS with Zope, and I'm 
tripping over a line in Steve Alexander's ZenFromZopeCoders [1] page.
In the section: "How Evan keeps his own personal patched Zope up to 
date" there is the command::

  patch -p0 ../Patches/*

What version of 'patch' is this? Mine is patch 2.5.4 [2], and 
'patch --help' says:

  Usage: patch [OPTION]... [ORIGFILE [PATCHFILE]]

In other words, ORIGFILE is mandatory. So Evan's idiom doesn't work
here. And if I have to specify the ORIGFILE on the commandline, then
a wildcarded PATCHFILE doesn't make sense. So how do I automatically
apply all the patches in a directory? Please tell me where to RTFM?

Regards,
Jean

.. [1] http://dev.zope.org/CVS/ZenFromZopeCoders?pp=1

.. [2] Full output::
$ patch --version
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.
[...]
written by Larry Wall and Paul Eggert