Integrate deployqtHelp_mac.sh into deployqt.py

For now this is a dummy integration by just calling the former from
the latter, which has the advantage that
- only one script needs to be used for all platforms
- passing just qmake instead of individual install paths is enough
  also on macOS

Change-Id: Ie05077ada950addd287b87d88045605d3bddb48f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2020-11-23 11:11:19 +01:00
parent 1c244bd623
commit 07128078b9
3 changed files with 56 additions and 45 deletions

View File

@@ -46,11 +46,11 @@ def to_posix_path(path):
return path.replace('\\', '/')
return path
def check_print_call(command, workdir, env=None):
def check_print_call(command, workdir=None, env=None):
print('------------------------------------------')
print('COMMAND:')
print(' '.join(['"' + c.replace('"', '\\"') + '"' for c in command]))
print('PWD: "' + workdir + '"')
print('PWD: "' + (workdir if workdir else os.getcwd()) + '"')
print('------------------------------------------')
subprocess.check_call(command, cwd=workdir, env=env)