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>
This commit is contained in:
Oswald Buddenhagen 2012-09-18 17:19:31 +02:00 committed by The Qt Project
parent 0fae8b50f7
commit 695051f3be
1 changed files with 2 additions and 2 deletions

View File

@ -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};