diff --git a/system.xsd b/system.xsd new file mode 100644 index 00000000..d7bb2c7e --- /dev/null +++ b/system.xsd @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/validate.sh b/validate.sh new file mode 100755 index 00000000..aa804424 --- /dev/null +++ b/validate.sh @@ -0,0 +1,15 @@ +#! /usr/bin/env bash +err=0 + +for f in `find . -wholename "./example/*.system"` +do + xmllint --noout --schema system.xsd $f + if (($? != 0)); then + err=$((err + 1)) + fi +done + +if ((${err} > 0)); then + echo "There were errors while parsing" + exit 1 +fi