summaryrefslogtreecommitdiffstats
path: root/bin/docs-check-unique-examples.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/docs-check-unique-examples.py')
-rw-r--r--bin/docs-check-unique-examples.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/docs-check-unique-examples.py b/bin/docs-check-unique-examples.py
new file mode 100644
index 0000000..d9e5cf6
--- /dev/null
+++ b/bin/docs-check-unique-examples.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+#
+# Searches through the whole doc/user tree and verifies
+# that the names of the single examples are unique over
+# all *.xml files.
+# Additionally, the suffix entries have to be unique
+# within each scons_command_output.
+#
+
+import os
+import SConsExamples
+
+if __name__ == "__main__":
+ if SConsExamples.exampleNamesAreUnique(os.path.join('doc','user')):
+ print "OK"
+ else:
+ print "Not all example names and suffixes are unique! Please correct the errors listed above and try again."