>>>> "Holger" == Holger Schauer
<Holger.Schauer(a)gmx.de> writes:
Holger> Hi !
Holger> Please, excuse my ignorance, but how does one apply
Holger> patches to the current xemacs-directory ?
Don't know as I'm using CVS.
Holger> After reading patch-xemacs.sh I came to the conclusion
Holger> that in my case "./patch-xemacs.sh xemacs-21.0.66 ." would
Holger> do it (with the patch correctly named) but the patch
Holger> failed - it couldn't determine the file to patch.
Holger> So, I gunzip'ed the patch, and did a patch -p1 < patch and
Holger> obtained the same result: for each file patch would ask me
Holger> which file to patch :-( The filenames used in the patches
Holger> all follow the pattern "XEmacs/xemacs/<filename>"
Holger> i.e. CHANGES-beta as <filename>. Well, XEmacs/xemacs does
Holger> not exist here (I'm using src/xemacs-<version>), so how
Holger> can I apply such a patch ?
In directory src/xemacs-<version> you should be able to do this:
patch -p2 < patch
Here's the relevant bit from the man page:
-p num For all path names in the patch file that
indicate the names of files to be patched,
delete num path name components from the
beginning of each path name. If the path
name in the patch file is absolute, any lead-
ing slashes are considered the first com-
ponent (that is, -p 1 removes the leading
slashes). Specifying -p 0 causes the full
path name to be used. If -p is not speci-
fied, only the basename (the final path name
component) is used.
Good luck,
Adrian
Holger> TIA,
Holger> Holger
Holger> --
Holger> ---
http://www.coling.uni-freiburg.de/~schauer/ ---
Holger> "Welche Linux-Distribution soll ich nehmen?"
Holger> -- Aus "Wie starte ich einen Endlosthread ?", Teil
1171
--
Adrian Aichner Teradyne GmbH, European Design Center
Integra Test Division Telephone +49/89/41861(0)-208
Dingolfinger Strasse 2 Fax +49/89/41861-217 (What is a Fax?)
D-81673 MUENCHEN E-mail adrian.aichner(a)teradyne.com