[elbe-devel] [PATCH 3/7] Add definition of 'finetuning/file' XML tag

dion at linutronix.de dion at linutronix.de
Fri May 17 11:16:57 CEST 2019


From: Olivier Dion <dion at linutronix.de>

The tag 'file' can be used under the tag 'finetuning'.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 schema/dbsfed.xsd | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index 333c0a8b..a8bce721 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -1737,6 +1737,13 @@
           </documentation>
         </annotation>
       </element>
+      <element name="file" type="rfs:file" minOccurs="0">
+        <annotation>
+          <documentation>
+	    write or append text to a file
+          </documentation>
+        </annotation>
+      </element>
       <element name="rm" type="rfs:rm" minOccurs="0">
         <annotation>
           <documentation>
@@ -2085,6 +2092,35 @@
     </simpleContent>
   </complexType>
 
+    <complexType name="file">
+    <annotation>
+      <documentation>
+        write or append text to a file, the following parameters
+        are avaible:
+        
+        'dst' - the destination to write to
+        'encoding' - the (optional) encoding of the content
+        'append="True"' - append the content to file instead of writing
+        'owner' - (optional) set file owner
+        'group' - (optional) set group ownership
+        'mode' - (optional) set file mode bits
+        
+        The value of the tag is the raw/encoded content to
+        write/append to the destination
+      </documentation>
+    </annotation>
+    <simpleContent>
+      <extension base="rfs:string">
+        <attribute name="dst"      type="string"  use="required" />
+        <attribute name="encoding" type="string"  use="optional" />
+        <attribute name="append"   type="boolean" use="optional" />
+        <attribute name="owner"    type="string"  use="optional" />
+        <attribute name="group"    type="string"  use="optional" />
+        <attribute name="mode"     type="string"  use="optional" />
+      </extension>
+    </simpleContent>
+  </complexType>
+
   <complexType name="adduser">
     <annotation>
       <documentation>
-- 
2.21.0




More information about the elbe-devel mailing list