summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-27 17:28:33 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-29 08:55:35 (GMT)
commit9e846d7b36124087708f08a10bb677a878875f92 (patch)
tree29df4abf81b80c8f62fdeaac2b5001625bc59c0f /bin
parent77fda24918bff693a20ae11eae64809a9c4689dd (diff)
downloadQt-9e846d7b36124087708f08a10bb677a878875f92.zip
Qt-9e846d7b36124087708f08a10bb677a878875f92.tar.gz
Qt-9e846d7b36124087708f08a10bb677a878875f92.tar.bz2
fix epic fail from 4ba6646
Reviewed-by: joerg
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/syncqt b/bin/syncqt
index eda36d5..1e553dc 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -994,14 +994,12 @@ if($check_includes) {
for (keys(%modules)) {
#iteration info
my $lib = $_;
- my $dir = "$modules{$lib}";
- {
- my $current_dir = "$_";
+ {
#calc subdirs
- my @subdirs = ($current_dir);
+ my @subdirs = ($modules{$lib});
foreach (@subdirs) {
my $subdir = "$_";
- opendir DIR, "$subdir";
+ opendir DIR, "$subdir" or die "Huh, directory ".$subdir." cannot be opened.";
while(my $t = readdir(DIR)) {
push @subdirs, "$subdir/$t" if(-d "$subdir/$t" && !($t eq ".") &&
!($t eq "..") && !($t eq ".obj") &&