diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-05-03 22:01:09 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-05-03 22:01:09 (GMT) |
commit | a0e23f824f8865cb1d3eb7808a3107c7864b579a (patch) | |
tree | a592c2cd2b0b07b12ded3c993bdad6a19a08aaea /bin/docs-validate.py | |
parent | fa3d2caef4a903e614500551c5824e3bd6e1eb2b (diff) | |
download | SCons-a0e23f824f8865cb1d3eb7808a3107c7864b579a.zip SCons-a0e23f824f8865cb1d3eb7808a3107c7864b579a.tar.gz SCons-a0e23f824f8865cb1d3eb7808a3107c7864b579a.tar.bz2 |
- 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 0000000..2bc70a9 --- /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." |