Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: remoting/host/installer/linux/build_deb.py

Issue 1426113002: port remoting_me2me_host_archive to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix version and update comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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())

Powered by Google App Engine
This is Rietveld 408576698