Ignore moduledir/doc in syncqt
authorLars Knoll <lars.knoll@nokia.com>
Thu, 12 Apr 2012 11:02:11 +0000 (13:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 21:16:51 +0000 (23:16 +0200)
When modularizing our documentation, module level
documentation is supposed to go into a doc
subfolder in the modules sources. Since this folder
also contains header files (snippets), we need to ignore
it in syncqt.

Change-Id: If8159816b042a1a6c810eaa0b6dbd99bf58d8ffa
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
bin/syncqt

index 3e77d20..bc2ccf3 100755 (executable)
@@ -959,6 +959,9 @@ foreach my $lib (@modules_to_sync) {
             #calc subdirs
             my @subdirs = ($headers_dir);
             foreach my $subdir (@subdirs) {
+                if ($subdir =~ /\/doc$/) {
+                    next;
+                }
                 opendir DIR, $subdir or next;
                 foreach my $t (sort readdir(DIR)) {
                     push @subdirs, "$subdir/$t" if(-d "$subdir/$t" && !($t eq ".") &&