From 444cbd53e25aeca5e3ebb4eaf01f3de190d98f00 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 17 Jul 2012 15:39:54 +0200 Subject: make sure that the stale header removal works the first time around sort backwards by ascii, so that the lowercase headers come first - otherwise the camelcase headers would survive the first round, as they include the lowercase forwarding headers which were not deleted yet. Change-Id: Iece2788206d31a11428f38da8d8f9f4d0b6dc992 Reviewed-by: Joerg Bornemann Reviewed-by: Oswald Buddenhagen --- bin/syncqt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/syncqt') diff --git a/bin/syncqt b/bin/syncqt index 359e854d05..7589e696a4 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -821,7 +821,7 @@ foreach my $lib (@modules_to_sync) { my @subdirs = ("$out_basedir/include/$lib"); foreach my $subdir (@subdirs) { if (opendir DIR, $subdir) { - foreach my $t (sort readdir(DIR)) { + foreach my $t (sort { $b cmp $a } readdir(DIR)) { my $file = "$subdir/$t"; if(-d $file) { push @subdirs, $file unless($t eq "." || $t eq ".."); -- cgit v1.2.3