Эх сурвалжийг харах

[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 <nodir@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Nodir Turakulov 5 жил өмнө
parent
commit
672e1dcfad
2 өөрчлөгдсөн 19 нэмэгдсэн , 0 устгасан
  1. 12 0
      dirmd
  2. 7 0
      dirmd.bat

+ 12 - 0
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" "$@"

+ 7 - 0
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" %*