[112552] trunk/doc-new/guide/xml/portfile-tcl.xml

snc at macports.org snc at macports.org
Fri Oct 25 14:29:33 PDT 2013


Revision: 112552
          https://trac.macports.org/changeset/112552
Author:   snc at macports.org
Date:     2013-10-25 14:29:33 -0700 (Fri, 25 Oct 2013)
Log Message:
-----------
doc-new: document all of reinplace's options

Modified Paths:
--------------
    trunk/doc-new/guide/xml/portfile-tcl.xml

Modified: trunk/doc-new/guide/xml/portfile-tcl.xml
===================================================================
--- trunk/doc-new/guide/xml/portfile-tcl.xml	2013-10-25 21:11:28 UTC (rev 112551)
+++ trunk/doc-new/guide/xml/portfile-tcl.xml	2013-10-25 21:29:33 UTC (rev 112552)
@@ -259,14 +259,27 @@
 
         <variablelist>
           <varlistentry>
-            <term>reinplace [-E] [--] <replaceable>command</replaceable>
-            <replaceable>file ...</replaceable></term>
+            <term>
+              reinplace
+              [-locale <replaceable>locale</replaceable>]
+              [-n]
+              [-W <replaceable>dir</replaceable>]
+              [--] <replaceable>command</replaceable>
+              <replaceable>file ...</replaceable>
+            </term>
 
             <listitem>
               <para>Replace text given by the regular expression portion of
               the command with the replacement text, in all files
               specified.</para>
 
+              <para>Use -locale to set the locale</para>
+
+              <para>-n is passed to sed to suppress echoing result</para>
+
+              <para>-W to set a common working directory for multiple
+              files</para>
+
               <para>Use -E to use the extended regular expression style (see
               re_format(7) for a description of the basic and extended
               styles)</para>
@@ -279,7 +292,7 @@
 
         <para>Examples:</para>
 
-        <programlisting>reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure</programlisting>
+        <programlisting>reinplace -W ${worksrcpath} "s|/usr/local|${prefix}|g" configure setup.py</programlisting>
 
         <programlisting>reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile</programlisting>
       </listitem>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131025/2359bab6/attachment-0001.html>


More information about the macports-changes mailing list