[luci-auth] Add statically-linked luci-auth CLI tool.

R=tandrii@chromium.org, vadimsh@chromium.org

Bug: 809645
Change-Id: I21ad49fa03630955eca6ecd531445bc4acf0c0c6
Reviewed-on: https://chromium-review.googlesource.com/905822
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
changes/22/905822/2
Robert Iannucci 7 years ago committed by Commit Bot
parent d6d0ecca50
commit f3b152d2f5

@ -18,3 +18,6 @@ infra/tools/mac_toolchain/${os=mac}-${arch} git_revision:d4dc0c29a004b59dcca1e69
# LUCI rpc command line tool
infra/tools/prpc/${platform} git_revision:bf5820217a310115ae8b971dee6ff6cb894ea3bf
# LUCI authentication command line tool
infra/tools/luci-auth/${platform} git_revision:bf5820217a310115ae8b971dee6ff6cb894ea3bf

@ -0,0 +1,13 @@
#!/bin/bash
# Copyright 2018 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/luci-auth" "$@"

@ -0,0 +1,8 @@
@echo off
:: Copyright 2018 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\luci-auth.exe" %*
Loading…
Cancel
Save