mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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:
parent
935cd72bdd
commit
8686e43058
@ -290,6 +290,8 @@ if (length($fhead)) {
|
||||
print "$prod\n";
|
||||
}
|
||||
|
||||
@ARGV = sort @ARGV;
|
||||
|
||||
while (<>) {
|
||||
if (eof) {
|
||||
close (ARGV); # reset line numbering
|
||||
|
Loading…
Reference in New Issue
Block a user