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
Hi all Answering my own question :o) Regarding 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/* This contains a typo --- I think it should be:: patch -p0 < ../Patches/* Cheers! Jean .. [1] http://dev.zope.org/CVS/ZenFromZopeCoders?pp=1
On Wed, Oct 17, 2001 at 12:25:24PM +0200, Jean Jordaan wrote:
patch -p0 < ../Patches/*
Wrong. Shell will expand it as patch -p0 < ../Patches/Patch1 ../Patches/Patch2 and oops... shell syntax error. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Wed, Oct 17, 2001 at 02:31:36PM +0400, Oleg Broytmann wrote:
Wrong. Shell will expand it as
patch -p0 < ../Patches/Patch1 ../Patches/Patch2
Ok, then. Assuming Bourne shell: for patch in ../Patches/* do patch -p0 < $patch done -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
On Wed, Oct 17, 2001 at 08:47:31AM -0500, Mike Renfro wrote:
Ok, then. Assuming Bourne shell:
for patch in ../Patches/* do patch -p0 < $patch done
That's fine. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (3)
-
Jean Jordaan -
Mike Renfro -
Oleg Broytmann