From 672e1dcfad9124fd3b9780ceace1c8d6999b5119 Mon Sep 17 00:00:00 2001 From: Nodir Turakulov Date: Tue, 14 Jul 2020 20:55:23 +0000 Subject: [PATCH] [dirmd] Add dirmd executables This should have been a part of https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2298244 Bug: 1104246 Change-Id: I3a1ef07cb4443aa2d62af7f3cb28e0d58bd3951a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2297804 Auto-Submit: Nodir Turakulov Commit-Queue: Edward Lesmes Reviewed-by: Edward Lesmes --- dirmd | 12 ++++++++++++ dirmd.bat | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100755 dirmd create mode 100644 dirmd.bat diff --git a/dirmd b/dirmd new file mode 100755 index 000000000..1a9b42a69 --- /dev/null +++ b/dirmd @@ -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/dirmd" "$@" diff --git a/dirmd.bat b/dirmd.bat new file mode 100644 index 000000000..d6b73c08e --- /dev/null +++ b/dirmd.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\dirmd.exe" %*