Sergey Berezin | 6fee267 | 2017-05-01 15:31:16 -0700 | [diff] [blame] | 1 | # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | function cipd_bin_setup { |
| 6 | local MYPATH=$(dirname "${BASH_SOURCE[0]}") |
Chris Nardi | ab816ce | 2017-10-31 15:45:05 -0400 | [diff] [blame^] | 7 | local ENSURE="$MYPATH/cipd_manifest.txt" |
| 8 | local ROOT="$MYPATH/.cipd_bin" |
| 9 | |
| 10 | UNAME=`uname -s | tr '[:upper:]' '[:lower:]'` |
| 11 | case $UNAME in |
| 12 | cygwin*) |
| 13 | ENSURE="$(cygpath -w $ENSURE)" |
| 14 | ROOT="$(cygpath -w $ROOT)" |
| 15 | ;; |
| 16 | esac |
Sergey Berezin | 6fee267 | 2017-05-01 15:31:16 -0700 | [diff] [blame] | 17 | |
Dan Jacques | eb1feb9 | 2017-07-28 13:04:28 +0200 | [diff] [blame] | 18 | "$MYPATH/cipd" ensure \ |
| 19 | -log-level warning \ |
Chris Nardi | ab816ce | 2017-10-31 15:45:05 -0400 | [diff] [blame^] | 20 | -ensure-file "$ENSURE" \ |
| 21 | -root "$ROOT" |
Sergey Berezin | 6fee267 | 2017-05-01 15:31:16 -0700 | [diff] [blame] | 22 | } |