From 898c0ee45599257d3730cac4481682f6b503f906 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 11 Sep 2013 11:19:22 +0200 Subject: Add --android argument to the init-repository.py script This option initializes the upstream chromium repository and additionally to the submodules needed for the matching OS it also clones submodules needed for Android. Change-Id: I1df84973aabc10f5c839bc4e3db7c6024f2c5145 Reviewed-by: Zeno Albisser --- tools/git_submodule.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/git_submodule.py b/tools/git_submodule.py index 5188ef390..b45316df5 100644 --- a/tools/git_submodule.py +++ b/tools/git_submodule.py @@ -44,6 +44,8 @@ import os import subprocess import sys +extra_os = [] + class Submodule: def __init__(self): self.path = '' @@ -62,6 +64,11 @@ class Submodule: return True if sys.platform.startswith('darwin') and ('unix' in self.os or 'mac' in self.os): return True + for os in extra_os: + if os in self.os: + return True + print self.os + print extra_os return False def findSha(self): -- cgit v1.2.3