Skip to content

Commit 75f416e

Browse files
committed
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
2 parents 576b199 + 3dc6b4e commit 75f416e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/build-docdep.perl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
}
3939
}
4040

41-
while (my ($text, $included) = each %include) {
41+
foreach my $text (sort keys %include) {
42+
my $included = $include{$text};
4243
if (! exists $included{$text} &&
4344
(my $base = $text) =~ s/\.txt$//) {
44-
print "$base.html $base.xml : ", join(" ", keys %$included), "\n";
45+
print "$base.html $base.xml : ", join(" ", sort keys %$included), "\n";
4546
}
4647
}

0 commit comments

Comments
 (0)