From f3b152d2f543522bb2dd3ce9cc58ccaf3ef2c540 Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Tue, 6 Feb 2018 16:05:13 -0800 Subject: [PATCH] [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 Reviewed-by: Andrii Shyshkalov Commit-Queue: Robbie Iannucci --- cipd_manifest.txt | 3 +++ luci-auth | 13 +++++++++++++ luci-auth.bat | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100755 luci-auth create mode 100644 luci-auth.bat diff --git a/cipd_manifest.txt b/cipd_manifest.txt index 1bf7c9a68..661d46f6d 100644 --- a/cipd_manifest.txt +++ b/cipd_manifest.txt @@ -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 diff --git a/luci-auth b/luci-auth new file mode 100755 index 000000000..e2c50c084 --- /dev/null +++ b/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" "$@" + diff --git a/luci-auth.bat b/luci-auth.bat new file mode 100644 index 000000000..74b0b67d6 --- /dev/null +++ b/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" %* +