diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-05-10 18:44:06 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-13 21:54:46 +0200 |
commit | 8a78225a337862225ffb598761a95c025107501b (patch) | |
tree | b9cd8a8bbc6a0192d972b414d32d70ce455bdddc /mkspecs/features | |
parent | 7db165d9e0a77d7b314b2ef004fff6f9149a704e (diff) |
make qtPrepareTool recognize perl scripts by extension
this makes it possible to directly execute perl scripts on windows.
Change-Id: Ibbb90d46518ea8ac4f695d07141700630b33fab3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/qt_functions.prf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index 8cd2473224..73d55b0676 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -194,7 +194,9 @@ defineTest(qtPrepareTool) { $$1 = $$eval(QT_TOOL.$${2}.command) isEmpty($$1) { $$1 = $$[QT_HOST_BINS]/$$2 - contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) { + exists($$eval($$1).pl) { + $$1 = perl -w $$eval($$1).pl + } else: contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) { exists($$eval($$1).bat) { $$1 = $$eval($$1).bat } else { |