diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-05-04 00:01:09 +0200 |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-05-04 00:01:09 +0200 |
commit | ab18361bfaedcc3247a78a66522f314d0d9ad708 (patch) | |
tree | a70fac176ccfba4a95aa971a84a1e63b15a1f2e9 /bin/docs-validate.py | |
parent | da92ab79fa66c92291f72119c7e081c60e9b9ca5 (diff) | |
download | scons-ab18361bfaedcc3247a78a66522f314d0d9ad708.tar.gz |
- started to implement new XML tools
- prepared introduction of SCons XSD namespace
Diffstat (limited to 'bin/docs-validate.py')
-rw-r--r-- | bin/docs-validate.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/docs-validate.py b/bin/docs-validate.py new file mode 100644 index 00000000..2bc70a98 --- /dev/null +++ b/bin/docs-validate.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# +# Searches through the whole source tree and validates all +# documentation files against our own XSD in docs/xsd. +# Additionally, it rewrites all files such that the XML gets +# pretty-printed in a consistent way. This is done to ensure that +# merging and diffing doesn't get too hard when people start to +# use different XML editors... +# + +import SConsDoc + +if __name__ == "__main__": + if SConsDoc.validate_all_xml(): + print "OK" + else: + print "Validation failed! Please correct the errors above and try again." |