Chromium Code Reviews| Index: remoting/host/installer/linux/build_deb.py |
| diff --git a/remoting/host/installer/linux/build_deb.py b/remoting/host/installer/linux/build_deb.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5bbdd7060e3ff3c5727696a0fe86fdcb7b2dec14 |
| --- /dev/null |
| +++ b/remoting/host/installer/linux/build_deb.py |
| @@ -0,0 +1,22 @@ |
| +# 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.
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""A simple python wrapper so GN can run build-deb.sh.""" |
| +import os |
| +import subprocess |
| +import sys |
| + |
| + |
| +def main(): |
| + this_dir = os.path.dirname(os.path.abspath(__file__)) |
| + build_deb_script = os.path.join(this_dir, 'build-deb.sh') |
| + proc = subprocess.Popen([build_deb_script] + sys.argv[1:], |
| + stdout=subprocess.PIPE) |
| + out, _ = proc.communicate() |
| + sys.stdout.write(out.strip()) |
| + return proc.returncode |
| + |
| + |
| +if __name__ == '__main__': |
| + sys.exit(main()) |