summaryrefslogtreecommitdiffstats
path: root/init-repository.py
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2014-07-15 18:26:04 +0200
committerMichael Bruning <michael.bruning@digia.com>2014-07-16 12:39:49 +0200
commit7cf9586ca965cbc31373fcb473659cfec6178945 (patch)
treeee1d8aabb2e2aca816e343aff4ec255bf712faba /init-repository.py
parent62b4ca99b871dbdcb271c3f3b533c6d500ebe6f0 (diff)
Fix init-repository to also work on Windows.
This creates a requirement to have pscp / PuTTY installed when wanting to initialize the upstream repositories on Windows. Change-Id: I404de5d45c70fd950a284a86403ca47c64826392 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'init-repository.py')
-rwxr-xr-xinit-repository.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/init-repository.py b/init-repository.py
index fa2ef5661..123894814 100755
--- a/init-repository.py
+++ b/init-repository.py
@@ -128,7 +128,10 @@ def addGerritRemote():
def installGitHooks():
os.chdir(qtwebengine_root)
- subprocess.call(['scp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks'])
+ if sys.platform == 'win32':
+ subprocess.call(['pscp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks'])
+ else:
+ subprocess.call(['scp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks'])
def initUpstreamSubmodules():
ninja_url = 'https://github.com/martine/ninja.git'
@@ -183,6 +186,6 @@ if args.upstream:
initUpstreamSubmodules()
updateLastChange()
if not args.baseline_upstream and not use_external_chromium:
- subprocess.call([os.path.join(qtwebengine_root, 'tools', 'scripts', 'patch_upstream.py')])
+ subprocess.call(['python', os.path.join(qtwebengine_root, 'tools', 'scripts', 'patch_upstream.py')])
if args.snapshot:
initSnapshot()