glib-mkenums: Sort input files for more deterministic output

This should be helpful for reproducible builds
<https://reproducible-builds.org/>.

Perl's sorting is not locale-sensitive unless the lexical scope has
'use locale', which this one does not, so we do not need to force
locale-agnostic sorting.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=769983
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809152
This commit is contained in:
Simon McVittie 2017-03-04 15:15:50 +00:00
parent 935cd72bdd
commit 8686e43058

View File

@ -290,6 +290,8 @@ if (length($fhead)) {
print "$prod\n";
}
@ARGV = sort @ARGV;
while (<>) {
if (eof) {
close (ARGV); # reset line numbering