[gtk-doc] gtkdoc-mkdb: make build results reproducible



commit 6658fbd0ab4bc222ac20d55ed3ad81474c95827b
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Wed Feb 4 09:50:20 2015 +0100

    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

 gtkdoc-mkdb.in |    2 +-
 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) {
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]