HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 2 and Version 3 of CreatePatch


Ignore:
Timestamp:
05/10/09 20:42:51 (6 years ago)
Author:
mmadia
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CreatePatch

    v2 v3  
    44 
    55 1. Place the directory (for example, named {{{xyz-1.0.0}}}) containing the original sources in a directory of your liking 
    6  1. Place the directory containing the patched sources in the same directory. You'll need to rename it first, of course (say {{{xyz-1.0.0-beos}}} 
     6 1. Place the directory containing the patched sources in the same directory. You'll need to rename it first, of course (say {{{xyz-1.0.0-haiku}}} 
    77 1. Now create the patch with 
    88{{{ 
    9 diff -Naur xyz-1.0.0 xyz-1.0.0-beos > xyz-1.0.0.patch 
     9diff -Naur xyz-1.0.0/ xyz-1.0.0-haiku/ > xyz-1.0.0.patch 
    1010}}} 
    1111 
    … …  
    1313 
    1414Congratulations! The generated patch is BePorter compatible. 
     15 
     16Note: when creating a patch from a svn or a similar repository, it is preferred to create the patch from the top-most directory. 
     17As example, image we wish to create a patch of Haiku's OptionalPackage file. 
     18{{{ 
     19cd /path/haiku/ 
     20svn diff build/jam/OptionalPackages > ~/OptionalPackage-<new-pkg>.patch 
     21}}} 
     22A patch created in this manner is the preferred method, as it allows the developers to apply it from their top-most directory. 
     23 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/