Improve logic to find default certificates in createpackage script
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Wed, 13 Apr 2011 08:58:40 +0000 (11:58 +0300)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:46 +0000 (12:54 +0200)
commitad295e740214405bc8ef55d594f9e42f40fcf34e
treef650c2be24170365077dc795f14c72bc863cfed1
parente05443367f60e591556ae8854ecb634a7cf6ea33
Improve logic to find default certificates in createpackage script

Original implementation assumed createpackage script was always run
from under Qt source tree bin directory, which is not always the case
as on some platforms the Qt tools can be found from under EPOCROOT.

Fixed it so that if the default directory for default certificates
can't be found in the expected location, createpackage will attempt to
query qmake in the same directory as the createpackage script for the
location of the Qt source tree (QT_INSTALL_PREFIX) and look for default
certificates directory from under there.

Task-number: QTBUG-18684
Reviewed-by: Janne Koskinen
(cherry picked from commit 01477af79d8114b3f8993c3967892538a599dfa6)
bin/createpackage.pl