Format platform files using xmllint
This commit is contained in:
parent
65a19e7802
commit
e4fd389075
|
@ -1,52 +1,52 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
||||||
<start>
|
<start>
|
||||||
<element name="platform">
|
<element name="platform">
|
||||||
<element name="char_bit">
|
<element name="char_bit">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="default-sign">
|
<element name="default-sign">
|
||||||
<data type="NCName"/>
|
<data type="NCName"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="sizeof">
|
<element name="sizeof">
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="bool">
|
<element name="bool">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="short">
|
<element name="short">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="int">
|
<element name="int">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="long">
|
<element name="long">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="long-long">
|
<element name="long-long">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="float">
|
<element name="float">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="double">
|
<element name="double">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="long-double">
|
<element name="long-double">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="pointer">
|
<element name="pointer">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="size_t">
|
<element name="size_t">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="wchar_t">
|
<element name="wchar_t">
|
||||||
<data type="integer"/>
|
<data type="integer"/>
|
||||||
</element>
|
</element>
|
||||||
</choice>
|
</choice>
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
</element>
|
</element>
|
||||||
</element>
|
</element>
|
||||||
</start>
|
</start>
|
||||||
</grammar>
|
</grammar>
|
||||||
|
|
|
@ -48,3 +48,8 @@ do
|
||||||
xmllint --format -o ${CFGFILE}_ ${CFGFILE}
|
xmllint --format -o ${CFGFILE}_ ${CFGFILE}
|
||||||
mv -f ${CFGFILE}_ ${CFGFILE}
|
mv -f ${CFGFILE}_ ${CFGFILE}
|
||||||
done
|
done
|
||||||
|
for PLATFORMFILE in platforms/*.xml
|
||||||
|
do
|
||||||
|
xmllint --format -o ${PLATFORMFILE}_ ${PLATFORMFILE}
|
||||||
|
mv -f ${PLATFORMFILE}_ ${PLATFORMFILE}
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue