cipd_bin_setup.sh 611 B

12345678910111213141516171819202122
  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. function cipd_bin_setup {
  5. local MYPATH=$(dirname "${BASH_SOURCE[0]}")
  6. local ENSURE="$MYPATH/cipd_manifest.txt"
  7. local ROOT="$MYPATH/.cipd_bin"
  8. UNAME=`uname -s | tr '[:upper:]' '[:lower:]'`
  9. case $UNAME in
  10. cygwin*)
  11. ENSURE="$(cygpath -w $ENSURE)"
  12. ROOT="$(cygpath -w $ROOT)"
  13. ;;
  14. esac
  15. "$MYPATH/cipd" ensure \
  16. -log-level warning \
  17. -ensure-file "$ENSURE" \
  18. -root "$ROOT"
  19. }