Changes

From SME Server
Jump to navigationJump to search
179 bytes added ,  12:52, 16 September 2008
Line 118: Line 118:  
=====Make a patch=====
 
=====Make a patch=====
 
Then switch to the tree and make modification.
 
Then switch to the tree and make modification.
 +
 +
Method A
    
In the prepared dir copy a file you want to modify like so:
 
In the prepared dir copy a file you want to modify like so:
Line 124: Line 126:     
Then modify the original file 28UserManagerProxyPass.
 
Then modify the original file 28UserManagerProxyPass.
To add new files touch the file.{patchname} so it is empty. (really empty = 0kb, some file manager don't!)
+
To add new files touch the file.{patchname} so it is empty.
    
Once you have all the files you want patched copied and changed then you can build the patch (from the contribs7 dir) with:
 
Once you have all the files you want patched copied and changed then you can build the patch (from the contribs7 dir) with:
Line 131: Line 133:  
(man gendiff.  That is what the makefile uses to generate the diff file.)
 
(man gendiff.  That is what the makefile uses to generate the diff file.)
    +
Method B
 +
 +
Make a copy of the prepared directory, edit directly, then make a patch
    +
cp smeserver-foo-1.0 smeserver-foo-1.0.old
 +
diff -urN smeserver-foo-1.0.old smeserver-foo-1.0 > smeserver-foo-1.0-removeConfig.patch
    
=====Apply a patch=====
 
=====Apply a patch=====

Navigation menu