Changeset 27832 for trunk/doc


Ignore:
Timestamp:
Aug 15, 2007, 12:52:20 AM (12 years ago)
Author:
markd@…
Message:

Add a section for manually applying patches to the Patch Files section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/guide/new/xml/portfiledev.xml

    r27765 r27832  
    438438
    439439  <section>
    440     <title>Creating Patch Files</title>
     440    <title>Patch Files</title>
    441441
    442442    <para>Patch files are files created with the Unix command
     
    446446
    447447    <section>
    448       <title>Portfile Patches</title>
     448      <title>Creating Portfile Patches</title>
    449449
    450450      <para>If you wish to contribute modifications or fixes to a
     
    508508
    509509    <section>
    510       <title>Source Code Patches</title>
     510      <title>Creating Source Code Patches</title>
    511511
    512512      <para>Necessary or useful patches to application source code should be
     
    574574      </orderedlist>
    575575    </section>
     576
     577    <section>
     578      <title>Manually Applying Patches</title>
     579
     580      <para>Though MacPorts applies patch files automatically, you may want to
     581      know how to apply patch files manually if you want to apply uncommitted
     582      Portfile patches or other similar uses.</para>
     583
     584      <orderedlist>
     585        <listitem>
     586          <para>Change to the directory containing the file to be patched. In
     587          this example, we'll apply a <filename>Portfile</filename> patch to
     588          the postfix port.</para>
     589
     590          <programlisting><prompt>%%</prompt> <userinput>cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/mail/postfix</userinput></programlisting>
     591        </listitem>
     592
     593        <listitem>
     594          <para>Now apply the patch that is on the current user's desktop. The
     595          patchfile knows the filename of the file to be patched.</para>
     596
     597          <programlisting><prompt>%%</prompt> <userinput>patch &lt; ~/Desktop/Portfile.diff</userinput></programlisting>
     598
     599          <screen>patching file Portfile</screen>
     600        </listitem>
     601      </orderedlist>
     602    </section>
    576603  </section>
    577604</chapter>
Note: See TracChangeset for help on using the changeset viewer.