Sujet : [Urgent, c pour le boulot] Comment on patch un fichier ??? |
pipomolo |
Ben dison que ce forum n'est pas cense remplacer les manpages...si tu lisais le man de patch tu verrais que c'est vraiment tout con d'appliquer un patch
Citation :
DESCRIPTION The patch command reads a source (patch) file containing any of the three forms of difference (diff) listings produced by
the diff(1) command (normal, context or in the style of
ed(1)) and apply those differences to a file. By default,
patch reads from the standard input.
patch attempts to determine the type of the diff listing, unless overruled by a -c, -e or -n option. If the patch file contains more than one patch, patch will attempt to apply each of them as if they came from separate
patch files. (In this case the name of the patch file must
be determinable for each diff listing.)
|
en admettant que tu aies une arborescence du type :
/home/mes_sources/imap-4.7/src/osdep/unix/
tu fais :
cd /home/mes_sources
patch < imap-mysql-0.0.2.patch
pas hyper complique qd meme
++ |