#!/bin/bash
#===- llvm/utils/docker/build_docker_image.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
#
#===----------------------------------------------------------------------===//
IMAGE_SOURCE=""
DOCKER_REPOSITORY=""
DOCKER_TAG=""
BUILDSCRIPT_ARGS=""
CHECKOUT_ARGS=""
CMAKE_ENABLED_PROJECTS=""
CHECKSUMS_FILE=""
SEEN_INSTALL_TARGET=0
SEEN_CMAKE_ARGS=0
while ; do
case "" in
-h|--help)
;;
-s|--source)
IMAGE_SOURCE=""
;;
-d|--docker-repository)
DOCKER_REPOSITORY=""
;;
-t|--docker-tag)
DOCKER_TAG=""
;;
-r|--revision|-c|-cherrypick|-b|--branch)
CHECKOUT_ARGS=" "
;;
-i|--install-target)
SEEN_INSTALL_TARGET=1
BUILDSCRIPT_ARGS=" "
;;
-p|--llvm-project)
PROJ=""
CMAKE_ENABLED_PROJECTS=" ;"
;;
-c|--checksums)
CHECKSUMS_FILE=""
;;
--)
BUILDSCRIPT_ARGS=" -- "
SEEN_CMAKE_ARGS=1
;;
*)
;;
esac
done
if [; then
# Remove the leading ';' character.
CMAKE_ENABLED_PROJECTS=""
if ; then
BUILDSCRIPT_ARGS=" --"
fi
BUILDSCRIPT_ARGS=" -DLLVM_ENABLE_PROJECTS="
fi
||
{
}
if [; then
fi
if [; then
fi
if [; then
fi
SOURCE_DIR=
if [; then
fi
BUILD_DIR=
if [; then
fi
if [; then
DOCKER_TAG=":"
fi