View | Details | Raw Unified | Return to bug 147268
Collapse All | Expand All

(-)book.sgml (-1 / +15 lines)
Lines 662-668 Link Here
662
	  To make fixes and upgrades easier, you should avoid having more than
662
	  To make fixes and upgrades easier, you should avoid having more than
663
	  one patch fix the same file (e.g., <filename>patch-file</filename> and
663
	  one patch fix the same file (e.g., <filename>patch-file</filename> and
664
	  <filename>patch-file2</filename> both changing
664
	  <filename>patch-file2</filename> both changing
665
	  <filename><makevar>WRKSRC</makevar>/foobar.c</filename>).</para>
665
	  <filename><makevar>WRKSRC</makevar>/foobar.c</filename>).
666
	  Note that if the path of a patched file contains an underscore
667
	  (<literal>_</literal>) character, the patch needs to have two
668
	  underscores instead in its name.  For example, to patch a file
669
	  named <filename>src/freeglut_joystick.c</filename>, the
670
	  corresponding patch should be named
671
	  <filename>patch-src-freeglut__joystick.c</filename>.</para>
666
672
667
	<para>Please only use characters <literal>[-+._a-zA-Z0-9]</literal> for
673
	<para>Please only use characters <literal>[-+._a-zA-Z0-9]</literal> for
668
	  naming your patches.  Do not use any other characters besides them.
674
	  naming your patches.  Do not use any other characters besides them.
Lines 735-740 Link Here
735
741
736
	<programlisting>USE_DOS2UNIX=    yes
742
	<programlisting>USE_DOS2UNIX=    yes
737
DOS2UNIX_REGEX=  .*\.(c|cpp|h)</programlisting>
743
DOS2UNIX_REGEX=  .*\.(c|cpp|h)</programlisting>
744
745
	<para>If you want to create a patch file based off of an
746
	  existing file, you can copy it with an
747
	  <filename>.orig</filename> extension, and then modify the
748
	  original one.  Run <maketarget>makepatch</maketarget>, and
749
	  this will write out an appropriate patch file to the <filename
750
	    class="directory">files</filename> directory of the
751
	  port.</para>
738
      </sect1>
752
      </sect1>
739
753
740
      <sect1 id="slow-configure">
754
      <sect1 id="slow-configure">

Return to bug 147268