Changes

Jump to navigation Jump to search
m
Line 145: Line 145:  
If you want to apply a patch file on an old version to have a new one modified by the path file, this is possible with the '''patch''' tool.
 
If you want to apply a patch file on an old version to have a new one modified by the path file, this is possible with the '''patch''' tool.
 
Imagine you have on non modified version somewhere on a server. Put you patch file into the root directory. Go into this root directory then launch the command:
 
Imagine you have on non modified version somewhere on a server. Put you patch file into the root directory. Go into this root directory then launch the command:
patch -u -p0 -d . < mypatch.patch
+
<source lang="bash">
 +
patch -u -p0 -d . < mypatch.patch
 +
</source>
 
<nowiki>For information: -p0 is to use full path of files defined in patch file to locate them on your disk (-pn will remove the n first levels of directories)
 
<nowiki>For information: -p0 is to use full path of files defined in patch file to locate them on your disk (-pn will remove the n first levels of directories)
 
-d define the relative path do directory to patch.
 
-d define the relative path do directory to patch.

Navigation menu