diff options
-rwxr-xr-x | bin/syncqt.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/syncqt.pl b/bin/syncqt.pl index 02194aa0b7..c9374c4a6d 100755 --- a/bin/syncqt.pl +++ b/bin/syncqt.pl @@ -76,7 +76,7 @@ sub normalizePath { # set output basedir to be where ever syncqt is run from our $out_basedir = getcwd(); normalizePath(\$out_basedir); -our $build_basedir = $out_basedir; +our $build_basedir; our $basedir; # Make sure we use Windows line endings for chomp and friends on Windows. @@ -129,7 +129,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 " -builddir <PATH> Specify build directory for sync (default: $build_basedir)\n"; + print " -builddir <PATH> Specify build directory for sync (default: same as -outdir)\n"; print " -version <VERSION> Specify the module's version (default: detect from qglobal.h)\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"; @@ -728,7 +728,7 @@ sub globosort($$) { } # check if this is an in-source build, and if so use that as the basedir too -$basedir = locateSyncProfile($build_basedir); +$basedir = locateSyncProfile($out_basedir); if ($basedir) { $basedir = dirname($basedir) ; normalizePath(\$basedir); @@ -899,6 +899,8 @@ while ( @ARGV ) { die "Could not find any sync.profile for your module!\nPass <module directory> to syncqt to sync your header files.\nsyncqt failed" if (!$basedir); die "The -version argument is mandatory" if (!$module_version); +$build_basedir = $out_basedir if (!defined($build_basedir)); + our @ignore_headers = (); our @ignore_for_master_contents = (); our @ignore_for_include_check = (); |