summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/syncqt.bat6
-rw-r--r--mkspecs/features/default_pre.prf3
2 files changed, 6 insertions, 3 deletions
diff --git a/bin/syncqt.bat b/bin/syncqt.bat
index dd0da87f19..5167f3b4ab 100755
--- a/bin/syncqt.bat
+++ b/bin/syncqt.bat
@@ -38,5 +38,7 @@
:: $QT_END_LICENSE$
::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-@rem ***** This assumes PERL is in the PATH *****
-@perl.exe -S syncqt %*
+@echo off
+rem ***** This assumes PERL is in the PATH *****
+set scriptpath=%~dp0
+perl.exe %scriptpath%syncqt %*
diff --git a/mkspecs/features/default_pre.prf b/mkspecs/features/default_pre.prf
index b8779c8162..adcdbb73e9 100644
--- a/mkspecs/features/default_pre.prf
+++ b/mkspecs/features/default_pre.prf
@@ -25,7 +25,8 @@ exists($$_PRO_FILE_PWD_/sync.profile) {
else:QTFWD="-qtdir $$QTDIR"
message("Running syncqt for $$PRO_BASENAME in $$OUT_PWD")
- system("$$QTDIR/bin/syncqt $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
+ qtPrepareTool(QMAKE_SYNCQT, syncqt)
+ system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
unset(QTFWD)
unset(PRO_BASENAME)
}