summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-10-15 13:30:49 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-19 00:44:54 +0200
commitc67a5df8d83f7741c2b7a0491cdc0782cae44971 (patch)
treed93356c2d6e823779448980f46cf4fb186909bfb /bin
parent4d693b6cdf879a03f77f2a06ca0e1be5605c0fc0 (diff)
Rename the syncqt -qtdir to -mkspecsdir
It's actually looking for the mkspecs (so it can read qconfig.pri to get the Qt version), so give it exactly what it wants. Change-Id: I2957b2d93a8837b8492d313209d45ff3ec01704c Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt26
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 3ca057ec6c..a10117bf2e 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -83,8 +83,8 @@ our $quoted_basedir;
# Make sure we use Windows line endings for chomp and friends on Windows.
$INPUT_RECORD_SEPARATOR = "\r\n" if ($^O eq "msys");
-my $qtbasedir = dirname(dirname($0));
-normalizePath(\$qtbasedir) if (defined $qtbasedir);
+my $mkspecsdir = dirname(dirname($0));
+normalizePath(\$mkspecsdir) if (defined $mkspecsdir);
# will be defined based on the modules sync.profile
our (%modules, %moduleheaders, @allmoduleheadersprivate, %classnames, %modulepris, %explicitheaders, %deprecatedheaders);
@@ -128,7 +128,7 @@ sub showUsage
print " -showonly Show action but not perform (default: " . ($showonly ? "yes" : "no") . ")\n";
print " -minimal Do not create CamelCase headers (default: " . ($minimal ? "yes" : "no") . ")\n";
print " -outdir <PATH> Specify output directory for sync (default: $out_basedir)\n";
- print " -qtdir <PATH> Set the path to QtBase (detected: " . (defined $qtbasedir ? $qtbasedir : "-none-") . ")\n";
+ print " -mkspecsdir <PATH> Set the path to the mkspecs (detected: " . (defined $mkspecsdir ? $mkspecsdir : "-none-") . ")\n";
print " -quiet Only report problems, not activity (same as -verbose 0)\n";
print " -v, -verbose <level> Sets the verbosity level (max. 4) (default: $verbose_level)\n";
print " The short form increases the level by +1\n";
@@ -669,8 +669,8 @@ while ( @ARGV ) {
} elsif($arg eq "-private") {
$var = "create_private_headers";
$val = "yes";
- } elsif($arg eq "-qtdir") {
- $var = "qtdir";
+ } elsif($arg eq "-mkspecsdir") {
+ $var = "mkspecsdir";
$val = shift @ARGV;
} elsif($arg =~/^-/) {
print "Unknown option: $arg\n\n" if(!$var);
@@ -746,12 +746,12 @@ while ( @ARGV ) {
push @modules_to_sync, $module;
$moduleheaders{$module} = $headerdir;
$create_uic_class_map = 0;
- } elsif ($var eq "qtdir") {
+ } elsif ($var eq "mkspecsdir") {
if($val) {
- $qtbasedir = $val;
- normalizePath(\$qtbasedir);
+ $mkspecsdir = $val;
+ normalizePath(\$mkspecsdir);
} else {
- die "The -qtdir option requires an argument";
+ die "The -mkspecsdir option requires an argument";
}
} elsif ($var eq "output") {
my $outdir = $val;
@@ -767,9 +767,9 @@ while ( @ARGV ) {
}
die "Cannot automatically detect/use provided path to QtBase's build directory!\n" .
- "QTDIR detected/provided: " . (defined $qtbasedir ? $qtbasedir : "-none-") . "\n" .
- "Please use the -qtdir option to provide the correct path.\nsyncqt failed"
- if (!$qtbasedir || !-d "$qtbasedir/mkspecs");
+ "QTDIR detected/provided: " . (defined $mkspecsdir ? $mkspecsdir : "-none-") . "\n" .
+ "Please use the -mkspecsdir option to provide the correct path.\nsyncqt failed"
+ if (!$mkspecsdir || !-d $mkspecsdir);
# if we have no $basedir we cannot be sure which sources you want, so die
die "Could not find any sync.profile for your module!\nPass <module directory> to syncqt to sync your header files.\nsyncqt failed" if (!$basedir);
@@ -792,7 +792,7 @@ my %allmoduleheadersprivate = map { $_ => 1 } @allmoduleheadersprivate;
$isunix = checkUnix; #cache checkUnix
-my $qt_version = fileContents($qtbasedir."/mkspecs/qconfig.pri");
+my $qt_version = fileContents($mkspecsdir."/qconfig.pri");
if (length($qt_version)) {
$qt_version =~ s,.*^QT_VERSION[ \t]*=[ \t]*(\S+).*,$1,sm;
} else {