| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 # This wrapper script runs the Debian sysroot installation scripts, if they | |
| 7 # exist. | |
| 8 # | |
| 9 # The script is a no-op except for linux users who have the following in their | |
| 10 # GYP_DEFINES: | |
| 11 # | |
| 12 # * branding=Chrome | |
| 13 # * buildtype=Official | |
| 14 # | |
| 15 # and not: | |
| 16 # | |
| 17 # * chromeos=1 | |
| 18 | |
| 19 import os.path | |
| 20 import subprocess | |
| 21 import sys | |
| 22 | |
| 23 def main(): | |
| 24 if sys.platform != 'linux2': | |
| 25 return 0 | |
| 26 | |
| 27 SRC_DIR = os.path.dirname(os.path.dirname(os.path.dirname( | |
| 28 os.path.realpath(__file__)))) | |
| 29 SCRIPT_FILE = os.path.join(SRC_DIR, | |
| 30 'chrome', | |
| 31 'installer', | |
| 32 'linux', | |
| 33 'sysroot_scripts', | |
| 34 'install-debian.wheezy.sysroot.py') | |
| 35 if os.path.exists(SCRIPT_FILE): | |
| 36 ret = subprocess.call([SCRIPT_FILE, '--linux-only', '--arch=amd64']) | |
| 37 if ret != 0: | |
| 38 return ret | |
| 39 ret = subprocess.call([SCRIPT_FILE, '--linux-only', '--arch=i386']) | |
| 40 if ret != 0: | |
| 41 return ret | |
| 42 return 0 | |
| 43 | |
| 44 if __name__ == '__main__': | |
| 45 sys.exit(main()) | |
| OLD | NEW |