blob: e31fe874277b5c3f7f69737f515bdf50b0337003 [file] [log] [blame]
# get script
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
# This script allows easier checkout of LLVM modules. Just specify the names
# of the modules on the command line. See the README.txt file.
# Get the shell function library.
if test ! -z "$LLVM_TOP" ; then
if test -f "$LLVM_TOP/" ; then
. "$LLVM_TOP/"
echo "Your LLVM_TOP variable is not set to an llvm-top directory"
exit 1
elif test -f ./ ; then
. ./
elif test -f ../ ; then
. ../
echo Please run $0 from the llvm-top directory or a module directory.
exit 1
# Get the list of modules
process_arguments "$@"
# Getting the module dependencies also causes them to be checked out.
get_module_dependencies $MODULES
# Report what happened.
msg 1 Modules checked out:"$MODULE_DEPENDENCIES".