Skip to content

Commit 35db476

Browse files
committed
docs/manual: Sort example file lists
so that docs/manual/libxml++.xml builds in a reproducible way. See https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/merge_requests/15 by Bernhard M. Wiedemann.
1 parent 5fd04f3 commit 35db476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/manual/insert_example_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def insert_example_code(examples_base_dir, input_xml_files, output_xml_file):
5656
# List all the source files in the examples directory.
5757
source_directory = os.path.join(examples_base_dir, source_include_match.group(1))
5858
outfile.write('<!-- start inserted example code -->\n')
59-
for source_filename in glob.glob(os.path.join(source_directory, '*.h')) + \
60-
glob.glob(os.path.join(source_directory, '*.cc')):
59+
for source_filename in sorted(glob.glob(os.path.join(source_directory, '*.h'))) + \
60+
sorted(glob.glob(os.path.join(source_directory, '*.cc'))):
6161
source_basename = os.path.basename(source_filename)
6262
process_source_file(source_directory, source_basename, outfile)
6363
outfile.write('<!-- end inserted example code -->\n')

0 commit comments

Comments
 (0)