Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
Sergey Ulanov
2015/11/03 18:21:37
nit: remove (c)
Dirk Pranke
2015/11/03 21:10:20
Will do.
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """A simple python wrapper so GN can run build-deb.sh.""" | |
| 6 import os | |
| 7 import subprocess | |
| 8 import sys | |
| 9 | |
| 10 | |
| 11 def main(): | |
| 12 this_dir = os.path.dirname(os.path.abspath(__file__)) | |
| 13 build_deb_script = os.path.join(this_dir, 'build-deb.sh') | |
| 14 proc = subprocess.Popen([build_deb_script] + sys.argv[1:], | |
| 15 stdout=subprocess.PIPE) | |
| 16 out, _ = proc.communicate() | |
| 17 sys.stdout.write(out.strip()) | |
| 18 return proc.returncode | |
| 19 | |
| 20 | |
| 21 if __name__ == '__main__': | |
| 22 sys.exit(main()) | |
| OLD | NEW |