[ci skip] Add note that this change may break SetOption() + ninja usage with fix
[scons.git] / bin / docs-create-example-outputs.py
blob2df6f90b5b309b060ab3c24a4ee5b7320e2d1b34
1 #!/usr/bin/env python
3 # SPDX-License-Identifier: MIT
5 # Copyright The SCons Foundation
7 # Searches through the whole doc/user tree and creates
8 # all output files for the single examples.
10 import os
11 import sys
12 import SConsExamples
14 if __name__ == "__main__":
15 print("Checking whether all example names are unique...")
16 if SConsExamples.exampleNamesAreUnique(os.path.join('doc', 'user')):
17 print("OK")
18 else:
19 print(
20 "Not all example names and suffixes are unique! "
21 "Please correct the errors listed above and try again."
23 sys.exit(1)
25 SConsExamples.createAllExampleOutputs(os.path.join('doc', 'user'))