Jelajahi Sumber

[resultdb] Add rdb and rdb.bat

This should have been a part of
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2176997

R=estaab@chromium.org

Change-Id: Ia362b562c9818ab759a793aeafd8fda221c86ac4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2177172
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
Auto-Submit: Nodir Turakulov <nodir@chromium.org>
Nodir Turakulov 5 tahun lalu
induk
melakukan
0f47d332f1
2 mengubah file dengan 19 tambahan dan 0 penghapusan
  1. 12 0
      rdb
  2. 7 0
      rdb.bat

+ 12 - 0
rdb

@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# Copyright 2020 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 &> /dev/null
+
+exec "$MYPATH/.cipd_bin/rdb" "$@"

+ 7 - 0
rdb.bat

@@ -0,0 +1,7 @@
+@echo off
+:: Copyright 2020 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.
+
+call "%~dp0\cipd_bin_setup.bat" > nul 2>&1
+"%~dp0\.cipd_bin\rdb.exe" %*