mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02: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";
|
print "$prod\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ARGV = sort @ARGV;
|
||||||
|
|
||||||
while (<>) {
|
while (<>) {
|
||||||
if (eof) {
|
if (eof) {
|
||||||
close (ARGV); # reset line numbering
|
close (ARGV); # reset line numbering
|
||||||
|
Loading…
x
Reference in New Issue
Block a user