소스 검색

Add vpython to depot_tools for linux and mac

BUG=717208
R=dnj@chromium.org

Change-Id: If937a382be9aa4d8eb5f957386e8b1b28cc1c3ac
Reviewed-on: https://chromium-review.googlesource.com/492086
Reviewed-by: Daniel Jacques <dnj@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Sergey Berezin 8 년 전
부모
커밋
6fee2673e9
4개의 변경된 파일32개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      .gitignore
  2. 10 0
      cipd_bin_setup.sh
  3. 6 0
      cipd_manifest.txt
  4. 12 0
      vpython

+ 4 - 0
.gitignore

@@ -2,6 +2,7 @@
 *.pyc
 
 # ignore cipd client files
+/.cipd_bin
 /.cipd_client*
 /.versions
 
@@ -67,3 +68,6 @@
 
 # Ignore google AE downloaded for running testing only.
 testing_support/google_appengine
+
+# Ignore emacs / vim backup files.
+*~

+ 10 - 0
cipd_bin_setup.sh

@@ -0,0 +1,10 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+function cipd_bin_setup {
+    local MYPATH=$(dirname "${BASH_SOURCE[0]}")
+
+    "$MYPATH/cipd" ensure -ensure-file "$MYPATH/cipd_manifest.txt" \
+        -root "$MYPATH/.cipd_bin"
+}

+ 6 - 0
cipd_manifest.txt

@@ -0,0 +1,6 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# vpython.
+infra/tools/luci/vpython/${platform}  git_revision:589bb41ab0ab9134d2555d7d3051d678d37b3238

+ 12 - 0
vpython

@@ -0,0 +1,12 @@
+#/bin/bash
+
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+MYPATH=$(dirname "${BASH_SOURCE[0]}")
+
+source "$MYPATH/cipd_bin_setup.sh"
+cipd_bin_setup
+
+exec "$MYPATH/.cipd_bin/vpython" "$@"