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

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Fri May 28 14:47:29 PDT 2004


jwrober     04/05/28 15:47:29

  Modified:    docs/syntax_doc/alfs_dtd elem_file.xml
  Log:
  * cleanup
  
  Revision  Changes    Path
  1.10      +3 -57     ALFS/docs/syntax_doc/alfs_dtd/elem_file.xml
  
  Index: elem_file.xml
  ===================================================================
  RCS file: /home/cvsroot/ALFS/docs/syntax_doc/alfs_dtd/elem_file.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- elem_file.xml	23 Feb 2004 04:06:00 -0000	1.9
  +++ elem_file.xml	28 May 2004 21:47:29 -0000	1.10
  @@ -20,8 +20,8 @@
   <sect2>
   <title>Description</title>
   
  -<para>The element <filename>file</filename> is used to specify the file in
  -a <filename>download</filename>, <filename>search_replace</filename> or
  +<para>The element <filename>file</filename> is used to specify the filename
  +for a <filename>download</filename>, <filename>search_replace</filename> or
   <filename>textdump</filename> operation.</para>
   
   </sect2>
  @@ -29,61 +29,7 @@
   <sect2>
   <title>Examples</title>
   
  -<para>The first example is a search_replace.</para>
  -
  -<screen><userinput><search_replace base="/usr/src/mypackage">
  -	<file>runit.sh</file>
  -	<find>BINDIR</find>
  -	<replace>/bin</replace>
  -</search_replace></userinput></screen>
  -
  -<para>The equivalent bash script is :</para>
  -
  -<screen><userinput>echo Performing substitution in runit.sh
  -cd /usr/src/mypackage
  -cp runit.sh /tmp/foo.$$
  -<command>sed -e 's/BINDIR/\/bin/' /tmp/foo.$$ > runit.sh</command></userinput></screen>
  -
  -<para>The second example is a textdump.</para>
  -
  -<screen><userinput><textdump base="/etc">
  -	<file>group</file>
  -
  -	<content>
  -		=root:x:0:
  -		=bin:x:1:
  -		=sys:x:2:
  -		=kmem:x:3:
  -		=tty:x:4:
  -		=tape:x:5:
  -		=daemon:x:6:
  -		=floppy:x:7:
  -		=disk:x:8:
  -		=lp:x:9:
  -		=dialout:x:10:
  -		=audio:x:11:
  -	</content>
  -</textdump></userinput></screen>
  -
  -<para>The equivalent bash script is :</para>
  -
  -<screen><userinput>echo Generating file group
  -cd /etc
  -
  -<command>cat > group << 'EOF'</command>
  -root:x:0:
  -bin:x:1:
  -sys:x:2:
  -kmem:x:3:
  -tty:x:4:
  -tape:x:5:
  -daemon:x:6:
  -floppy:x:7:
  -disk:x:8:
  -lp:x:9:
  -dialout:x:10:
  -audio:x:11:
  -<command>EOF</command></userinput></screen>
  +<para>See any one of the parent elements for an example.</para>
   
   </sect2>
   
  
  
  



More information about the alfs-log mailing list