#!/usr/bin/env bash
#===- llvm/utils/docker/scripts/checkout.sh ---------------------===//
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===-----------------------------------------------------------------------===//
LLVM_GIT_REV=""
CHERRYPICKS=""
LLVM_BRANCH=""
while ; do
case "" in
-r|--revision)
LLVM_GIT_REV=""
;;
-c|--cherrypick)
CHERRYPICKS=" "
;;
-b|--branch)
LLVM_BRANCH=""
;;
-h|--help)
;;
*)
esac
done
if [; then
LLVM_BRANCH="main"
fi
if [; then
GIT_REV_ARG=""
else
GIT_REV_ARG=""
fi
# Sort cherrypicks and remove duplicates.
CHERRYPICKS=""
CLANG_BUILD_DIR=/tmp/clang-build
# Get the sources from git.
CHECKOUT_DIR=" /src"
# We apply cherrypicks to all repositories regardless of whether the revision
# changes this repository or not. For repositories not affected by the
# cherrypick, applying the cherrypick is a no-op.
CHECKSUMS_FILE="/tmp/checksums/checksums.txt"
if [; then
else
fi