Ticket #16005: guide_reinplace.diff

File guide_reinplace.diff, 1.7 KB (added by blb@…, 16 years ago)

diff (rooted in trunk/) to update the guide XML

  • doc-new/guide/xml/portfile-tcl.xml

    old new  
    227227      <term>reinplace</term>
    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>
    231233
    232         <para>Examples:</para>
     234        <variablelist>
     235          <varlistentry>
     236            <term>reinplace [-E] [--] <replaceable>command</replaceable> <replaceable>file ...</replaceable></term>
     237            <listitem>
     238              <para>Replace text given by the regular expression portion of
     239              the command with the replacement text, in all files
     240              specified.</para>
     241              <para>Use -E to use the extended regular expression style (see
     242              re_format(7) for a description of the basic and extended
     243              styles)</para>
     244              <para>Use -- to end option processing and allow any further
     245              dashes not to be treated as options.</para>
     246            </listitem>
     247          </varlistentry>
     248        </variablelist>
    233249
    234         <programlisting>example 1</programlisting>
     250        <para>Examples:</para>
    235251
    236         <programlisting>example 2</programlisting>
     252        <programlisting>reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure</programlisting>
    237253
    238         <programlisting>example 3</programlisting>
     254        <programlisting>reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile</programlisting>
    239255      </listitem>
    240256    </varlistentry>
    241257