summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2015-02-04 09:50:20 +0100
committerStefan Sauer <ensonic@users.sf.net>2015-02-04 19:07:23 +0100
commit6658fbd0ab4bc222ac20d55ed3ad81474c95827b (patch)
treef9a9df25d7cab24598f5bb30f491a2f1dbc1323c
parent71062c1bbcaca23123e152fe6ba5f5c34b29f8bb (diff)
downloadgtk-doc-6658fbd0ab4bc222ac20d55ed3ad81474c95827b.tar.gz
gtkdoc-mkdb: make build results reproducible
Generate stable index order by also considering the case sensitive symbol as a 2nd order sort criteria. The first order criteria is compared case insensitive. https://bugzilla.gnome.org/show_bug.cgi?id=743967
-rwxr-xr-xgtkdoc-mkdb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 44b4477..55f1625 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -1095,7 +1095,7 @@ sub OutputIndex {
# do a case insensitive sort while chopping off the prefix
foreach my $hash (
- sort { $$a{criteria} cmp $$b{criteria} }
+ sort { $$a{criteria} cmp $$b{criteria} or $$a{original} cmp $$b{original} }
map { my $x = uc($_); $x =~ s/^$NAME_SPACE\_?(.*)/$1/i; { criteria => $x, original => $_, short => $1 } }
keys %apiindex) {