[ci skip] minor updates to CHANGE/RELEASE
[scons.git] / bin / docs-create-example-outputs.py
blobe5d40ce4cce3b6e30ff9f9f0b31f40ff689f4a15
1 #!/usr/bin/env python
3 # Searches through the whole doc/user tree and creates
4 # all output files for the single examples.
6 import os
7 import sys
8 import SConsExamples
10 if __name__ == "__main__":
11 print("Checking whether all example names are unique...")
12 if SConsExamples.exampleNamesAreUnique(os.path.join('doc', 'user')):
13 print("OK")
14 else:
15 print(
16 "Not all example names and suffixes are unique! "
17 "Please correct the errors listed above and try again."
19 sys.exit(1)
21 SConsExamples.createAllExampleOutputs(os.path.join('doc', 'user'))