diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-31 04:04:42 +0300 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-10-31 04:04:42 +0300 |
commit | 75f416ec6a3b3bee6739f8bf28963b347a3aaa4c (patch) | |
tree | 7037da6bf1ddb8ac557b373081040c8d03a8bc8a /Documentation | |
parent | 576b19924ebda9075512f8fd95fb2996cbe871b4 (diff) | |
parent | 3dc6b4e027266c7b7334920ca9be3162327325f7 (diff) |
Merge branch 'sg/stable-docdep'
Make sure generated dependency file is stably sorted to help
developers debugging their build issues.
* sg/stable-docdep:
Documentation/build-docdep.perl: generate sorted output
Diffstat (limited to 'Documentation')
-rwxr-xr-x | Documentation/build-docdep.perl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/build-docdep.perl b/Documentation/build-docdep.perl index ba4205e030..1b3ac8fdd9 100755 --- a/Documentation/build-docdep.perl +++ b/Documentation/build-docdep.perl @@ -38,9 +38,10 @@ while ($changed) { } } -while (my ($text, $included) = each %include) { +foreach my $text (sort keys %include) { + my $included = $include{$text}; if (! exists $included{$text} && (my $base = $text) =~ s/\.txt$//) { - print "$base.html $base.xml : ", join(" ", keys %$included), "\n"; + print "$base.html $base.xml : ", join(" ", sort keys %$included), "\n"; } } |