[TYPO3-english] How use file .patch
Steffen Gebert
steffen at steffen-gebert.de
Fri Oct 9 09:02:33 CEST 2009
On Fri, 09 Oct 2009 08:19:49 +0200, Valentin Miguel
<valentinmiguel at exagono.es> wrote:
> Hi,
> I would like know how I can to use a file .patch in typo3. Since days I
> had a problem with indexed search and I found a file .patch than repair
> a bug in indexed search, and I want know how use it,
http://www.google.com/search?client=opera&rls=de&q=man+patch&sourceid=opera&ie=utf-8&oe=utf-8
What Operating system are you using? Windows or *nix?
On *nix command line, you go to your typo3_src directory and enter the
following command:
patch -i path/to/the/dot.patch -p0
To first have a check, add --dry-run
If it asks you, which file to patch, the patch isn't applied to the root
of typo3_src (which is requirement for all "official" patches flying
around).
The -pX level works as followed:
The .patch e.g. starts with
Index: typo3/sysext/openid/ext_tables.php
===================================================================
--- typo3/sysext/openid/ext_tables.php (revision 5895)
+++ typo3/sysext/openid/ext_tables.php (working copy)
This means, starting from the current directory, the file
typo3/sysext/openid/ext_tables.php would be modified.
If there's e.g. "Index foo/typo3/sysext/openid/ext_tables.php" you have to
set -p1, to remove the 1 directory level, which doesn't exist.
If it's "Index: indexed_search/ext_tables.php", you have to go to the
typo3/sysext/ directory and use -p0 or you go to the
typo3/sysext/indexed_search/ and use -p1
If you use Win32: Maybe TortoiseSVN has a patch command. Otherwise just
search (maybe for the command line version, which should also work as
described). If you use a Mac: Welcome on *nix ;-)
Regards
Steffen
More information about the TYPO3-english
mailing list