Unverified Commit 6af096eb authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann
Browse files

Sort input file list

so that `gtkmm-tutorial/index.docbook` builds in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461

This PR was done while working on reproducible builds for openSUSE.
parent 58116667
Pipeline #394577 passed with stages
in 4 minutes and 26 seconds
......@@ -62,8 +62,8 @@ def insert_example_code(examples_base_dir, input_xml_files, output_xml_file):
# List all the source files in the examples directory.
source_directory = os.path.join(examples_base_dir, source_include_match.group(1))
for source_filename in glob.glob(os.path.join(source_directory, '*.h')) + \
glob.glob(os.path.join(source_directory, '*.cc')):
for source_filename in sorted(glob.glob(os.path.join(source_directory, '*.h'))) + \
sorted(glob.glob(os.path.join(source_directory, '*.cc'))):
source_basename = os.path.basename(source_filename)
process_source_file(source_directory, source_basename, outfile, True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment