Browse Source

[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>
Robert Iannucci 7 years ago
parent
commit
f3b152d2f5
3 changed files with 24 additions and 0 deletions
  1. 3 0
      cipd_manifest.txt
  2. 13 0
      luci-auth
  3. 8 0
      luci-auth.bat

+ 3 - 0
cipd_manifest.txt

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

+ 13 - 0
luci-auth

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

+ 8 - 0
luci-auth.bat

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