From 0f47d332f161b1162264177c5556f93863438ab7 Mon Sep 17 00:00:00 2001 From: Nodir Turakulov Date: Mon, 4 May 2020 19:43:52 +0000 Subject: [PATCH] [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 Reviewed-by: Aaron Gable Commit-Queue: Nodir Turakulov Auto-Submit: Nodir Turakulov --- rdb | 12 ++++++++++++ rdb.bat | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100755 rdb create mode 100644 rdb.bat diff --git a/rdb b/rdb new file mode 100755 index 000000000..5d3680660 --- /dev/null +++ b/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" "$@" diff --git a/rdb.bat b/rdb.bat new file mode 100644 index 000000000..830cdb854 --- /dev/null +++ b/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" %*