Changeset 38366 for trunk/doc-new


Ignore:
Timestamp:
Jul 17, 2008, 4:12:46 PM (11 years ago)
Author:
simon@…
Message:

doc-new: Updated description for Tcl extension "reinplace", closes #16005. Thanks to blb@….

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/portfile-tcl.xml

    r32903 r38366  
    228228
    229229      <listitem>
    230         <para>Description.</para>
     230        <para>Allows text specified by a regular expression to be replaced
     231        by new text, in-place (the file will be updated itself, no need to
     232        place output into a new file and rename).</para>
     233
     234        <variablelist>
     235          <varlistentry>
     236            <term>reinplace [-E] [--] <replaceable>command</replaceable>
     237            <replaceable>file ...</replaceable></term>
     238            <listitem>
     239              <para>Replace text given by the regular expression portion of
     240              the command with the replacement text, in all files
     241              specified.</para>
     242              <para>Use -E to use the extended regular expression style (see
     243              re_format(7) for a description of the basic and extended
     244              styles)</para>
     245              <para>Use -- to end option processing and allow any further
     246              dashes not to be treated as options.</para>
     247            </listitem>
     248          </varlistentry>
     249        </variablelist>
    231250
    232251        <para>Examples:</para>
    233252
    234         <programlisting>example 1</programlisting>
    235 
    236         <programlisting>example 2</programlisting>
    237 
    238         <programlisting>example 3</programlisting>
     253        <programlisting>reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure</programlisting>
     254
     255        <programlisting>reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile</programlisting>
    239256      </listitem>
    240257    </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.