summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-09-18 17:19:31 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-19 19:54:44 +0200
commit695051f3be09c8277dde3be1cd33d7b51fc37f6e (patch)
tree085f99319908946822d3553504d428cb38cb4df4 /bin
parent0fae8b50f7c37fad7f93845495199891d6191291 (diff)
move the module validation below the loading of sync.profile
otherwise the -module option will always die. Change-Id: I023ea5681a03a2848e1084eedbbcc66f8d060b69 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 05ee7a8b84..9e68a30f95 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -739,8 +739,6 @@ while ( @ARGV ) {
$minimal--;
}
} elsif ($var eq "module") {
- print "module :$val:\n" if($verbose_level);
- die "No such module: $val" unless(defined $modules{$val});
push @modules_to_sync, $val;
} elsif ($var eq "separate-module") {
my ($module, $prodir, $headerdir) = split(/:/, $val);
@@ -802,6 +800,8 @@ if (length($qt_version)) {
$qt_version =~ s,.*^#\h*define\h+QT_VERSION_STR\h+"([^"]+)".*,$1,sm;
}
foreach my $lib (@modules_to_sync) {
+ die "No such module: $lib" unless(defined $modules{$lib});
+
#iteration info
my $dir = $modules{$lib};