cvs commit: ALFS/docs/syntax_doc/alfs_dtd elem_search_replace.xml

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Sun Feb 22 19:17:23 PST 2004


jwrober     04/02/22 20:17:23

  Modified:    docs/syntax_doc/alfs_dtd elem_search_replace.xml
  Log:
  finished first pass across all elements
  
  Revision  Changes    Path
  1.6       +26 -30    ALFS/docs/syntax_doc/alfs_dtd/elem_search_replace.xml
  
  Index: elem_search_replace.xml
  ===================================================================
  RCS file: /home/cvsroot/ALFS/docs/syntax_doc/alfs_dtd/elem_search_replace.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- elem_search_replace.xml	4 Nov 2003 03:07:50 -0000	1.5
  +++ elem_search_replace.xml	23 Feb 2004 03:17:23 -0000	1.6
  @@ -6,23 +6,20 @@
   <title>Syntax</title>
   
   <synopsis>
  -<!ELEMENT search_replace (file, find, replace)>
  -
  +<!ELEMENT search_replace (file, find, replace)>
   <!ATTLIST configure
  -          base           CDATA #IMPLIED>
  +             base           CDATA #IMPLIED>
   </synopsis>
   
  -<para>This element occurs in the elements
  -<link linkend="elem_alfs">alfs</link>,
  -<link linkend="elem_alfs">else</link>,
  -<link linkend="elem_stage">stage</link>.
  -and <link linkend="elem_then">then</link>
  +<para>This element occurs in the elements :  
  +<xref linkend="elem_alfs"/>  |  
  +<xref linkend="elem_stage"/>
   </para>
   
  -<para>See also :
  -<link linkend="elem_file">file</link>,
  -<link linkend="elem_find">find</link>,
  -<link linkend="elem_replace">replace</link>.
  +<para>See also :  
  +<xref linkend="elem_file"/>  |  
  +<xref linkend="elem_find"/>  |  
  +<xref linkend="elem_replace"/>
   </para>
   
   </sect2>
  @@ -30,37 +27,36 @@
   <sect2>
   <title>Description</title>
   
  -<para>The element <token>search_replace</token> is used to perform
  -a search and replace operation of a file.</para>
  +<para>The element <filename>search_replace</filename> is one of the many
  +main operation elements.  It is used to perform a search and replace
  +operation of a file.</para>
   
  -<para>The sub-element <token>file</token> contains the filename</para>
  +<para>The sub-element <filename>file</filename> contains the
  +filename</para>
   
  -<para>The sub-element <token>find</token> contains the string to be searched</para>
  +<para>The sub-element <filename>find</filename> contains the string to be
  +searched</para>
   
  -<para>The sub-element <token>replace</token> contains the replacement string.</para>
  +<para>The sub-element <filename>replace</filename> contains the replacement
  +string.</para>
   
   </sect2>
   
   <sect2>
   <title>Examples</title>
   
  -<programlisting>
  -<search_replace
  -    base = "/usr/src/mypackage">
  -    <file>runit.sh</file>
  -    <find>BINDIR</find>
  -    <replace>/bin</replace>
  -</search_replace>
  -</programlisting>
  +<userinput><screen><search_replace base="/usr/src/mypackage">
  +	<file>runit.sh</file>
  +	<find>BINDIR</find>
  +	<replace>/bin</replace>
  +</search_replace></screen></userinput>
   
  -<para>The equivalent bash script is :</para>
  +<para>The equivalent bash script is :</para>
   
  -<programlisting>
  -echo Performing substitution in runit.sh
  +<userinput><screen>echo Performing substitution in runit.sh
   cd /usr/src/mypackage
   cp runit.sh /tmp/foo.$$
  -sed -e 's/BINDIR/\/bin/' /tmp/foo.$$ > runit.sh
  -</programlisting>
  +<command>sed -e 's/BINDIR/\/bin/' /tmp/foo.$$ > runit.sh</command></screen></userinput>
   
   </sect2>
   
  
  
  



More information about the alfs-log mailing list