• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# Copyright (c) 2013 The Chromium Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# This file takes two arguments, the relative location of the shell script that
8# does the checking, and the name of the sysroot.
9
10import subprocess
11import sys
12
13if len(sys.argv) != 3:
14    print("Need two arguments")
15    sys.exit(1)
16
17result = subprocess.check_output([sys.argv[1], sys.argv[2]]).strip()
18result = result.decode().replace(" ", "\n")
19if result != "":
20    print(result)
21