blob: 7c92aa8c385ec542c6c5a2d78700c77fe65b891f [file]
#!/bin/bash
LOC=`dirname "$0"`
for A in ${LOC}/../*.xml; do
xmllint --format --output $A.format --schema ${LOC}/../schema/zcl.xsd $A
mv -f $A.format $A
done
for A in ${LOC}/../../silabs/*.xml; do
xmllint --format --output $A.format --schema ${LOC}/../schema/zcl.xsd $A
mv -f $A.format $A
done
while IFS= read -r -d '' file; do
xmllint --format --output "$file.format" --schema ${LOC}/../schema/zcl.xsd "$file"
mv -f "$file.format" "$file"
done < <(find "${LOC}/../../matter/data-model" -type f -name "*.xml" -print0)
xmllint --format --output ${LOC}/../schema/zcl.xsd.format ${LOC}/../schema/zcl.xsd
mv -f ${LOC}/../schema/zcl.xsd.format ${LOC}/../schema/zcl.xsd