Ticket #16005: guide_reinplace.diff
File guide_reinplace.diff, 1.7 KB (added by blb@…, 16 years ago) |
---|
-
doc-new/guide/xml/portfile-tcl.xml
old new 227 227 <term>reinplace</term> 228 228 229 229 <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> 231 233 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> 233 249 234 <p rogramlisting>example 1</programlisting>250 <para>Examples:</para> 235 251 236 <programlisting> example 2</programlisting>252 <programlisting>reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure</programlisting> 237 253 238 <programlisting> example 3</programlisting>254 <programlisting>reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile</programlisting> 239 255 </listitem> 240 256 </varlistentry> 241 257