summaryrefslogtreecommitdiff
path: root/gobject/glib-mkenums.in
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-10-24 13:22:40 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-10-24 14:09:31 +0100
commit9023fa350d6271811e75d06848a3772fff8588b1 (patch)
treeb235dd55dc164a7c16921befa7f30be028e5e47b /gobject/glib-mkenums.in
parent5c13bf9bcf0f2c585ae97a7380f82f068264eea2 (diff)
downloadglib-9023fa350d6271811e75d06848a3772fff8588b1.tar.gz
Sort the list of files being processed by glib-mkenums
We should ensure a stable order when processing the files, regardless of the order they were submitted on the command line, to increase the chances of a reproducible build. The old Perl-based version of glib-mkenums was fixed in commit 8686e430 to do the same. https://bugzilla.gnome.org/show_bug.cgi?id=691436
Diffstat (limited to 'gobject/glib-mkenums.in')
-rwxr-xr-xgobject/glib-mkenums.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 7cc55053c..1e4565271 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -683,7 +683,7 @@ def process_file(curfilename):
prod = replace_specials(prod)
write_output(prod)
-for fname in options.args:
+for fname in sorted(options.args):
process_file(fname)
if len(ftail) > 0: