blob: 611d1539b9072da13b47b6a3e88fc2b48fcc43a7 [file] [log] [blame]
Sergey Berezin6fee2672017-05-01 15:31:16 -07001# 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
5function cipd_bin_setup {
6 local MYPATH=$(dirname "${BASH_SOURCE[0]}")
Chris Nardiab816ce2017-10-31 15:45:05 -04007 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 Berezin6fee2672017-05-01 15:31:16 -070017
Dan Jacqueseb1feb92017-07-28 13:04:28 +020018 "$MYPATH/cipd" ensure \
19 -log-level warning \
Chris Nardiab816ce2017-10-31 15:45:05 -040020 -ensure-file "$ENSURE" \
21 -root "$ROOT"
Sergey Berezin6fee2672017-05-01 15:31:16 -070022}