summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-08-26 16:46:40 +0200
committerLars Knoll <lars.knoll@qt.io>2016-09-10 14:03:46 +0000
commite7760312812c8bd0f1900ad149d266e2d1904a83 (patch)
tree2b9405dc390673534c336c27e93e151f85faafc2
parentb95b00c61a5500bc6fc003cd8a222c1b57622880 (diff)
minor optimization in stale file removal code
don't bother opening headers.pri files, as they won't match anyway. Change-Id: I4d923266dabf1c9684fba4086f55bc24d76d23c5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rwxr-xr-xbin/syncqt.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/syncqt.pl b/bin/syncqt.pl
index 7410762985..43a033d8e1 100755
--- a/bin/syncqt.pl
+++ b/bin/syncqt.pl
@@ -934,6 +934,7 @@ foreach my $lib (@modules_to_sync) {
foreach my $subdir (@subdirs) {
if (opendir DIR, $subdir) {
foreach my $t (sort { $b cmp $a } readdir(DIR)) {
+ next if ($t =~ /\.pri$/);
my $file = "$subdir/$t";
if(-d $file) {
push @subdirs, $file unless($t eq "." || $t eq "..");