Changeset 27252 for trunk/doc


Ignore:
Timestamp:
Jul 26, 2007, 2:04:55 AM (12 years ago)
Author:
markd@…
Message:

Add an Portfile patch example.

File:
1 edited

Legend:

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

    r27224 r27252  
    380380
    381381        <listitem>
    382           <para>Now use the Unix command <command>diff</command> to create a
    383           "unified" diff patch file.</para>
     382          <para>Now use the Unix command <command>diff -u </command>to create
     383          a "unified" diff patch file.</para>
    384384
    385385          <programlisting><prompt>%%</prompt> <userinput>diff -u Portfile.org Portfile &gt; Portfile.diff</userinput></programlisting>
     386        </listitem>
     387
     388        <listitem>
     389          <para>A patch file that is a "unified" diff file is the easiest to
     390          interpret by humans and this type should always be used for ports.
     391          The <filename>Portfile</filename> patch below will change the
     392          version and checksums when applied.</para>
     393
     394          <programlisting>--- Portfile.org        2007-07-25 18:52:12.000000000 -0700
     395+++ Portfile    2007-07-25 18:53:35.000000000 -0700
     396@@ -2,7 +2,7 @@
     397 PortSystem             1.0
     398 
     399 name                   nefu
     400-version                        1.4.0
     401+version                        1.3.0
     402 categories             net
     403 maintainers            nomaintainer@macports.org
     404 description            A network monitoring daemon.
     405@@ -13,9 +13,9 @@
     406
     407 homepage               http://rsug.itd.umich.edu/software/${name}
     408
     409 master_sites           ${homepage}/files/
     410-checksums              md5 f0953b21cdb5eb327e40d4b215110b71 \
     411+checksums              md5 01532e67a596bfff6a54aa36face26ae \
     412 extract.suffix  .tgz
     413 platforms              darwin
     414</programlisting>
    386415        </listitem>
    387416      </orderedlist>
     
    415444
    416445        <listitem>
    417           <para>Now use the Unix command <command>diff</command> to create a
    418           "unified" diff patch file.</para>
     446          <para>Now use the Unix command <command>diff -u</command> to create
     447          a "unified" diff patch file.</para>
    419448
    420449          <programlisting><prompt>%%</prompt> <userinput>cd foo-1.34</userinput>
     
    430459
    431460        <listitem>
    432           <para>A patch made using "-u" ("unified") is the easiest to
     461          <para>A patch file that is a "unified" diff file is the easiest to
    433462          interpret by humans and this type should always be used for ports.
    434463          See the example below where a patch adds <varname>DESTDIR</varname>
Note: See TracChangeset for help on using the changeset viewer.