llvm.org GIT mirror llvm / 842110c
[docker] Fix unmatched quote problem in here-document on older versions of bash Summary: When outputing usage, emit here-document directly instead of saving in a variable first -- avoids problem with bash 3.2.57 where an unmatched ' in the here-document results in the following error: ./build_docker_image.sh: line 135: unexpected EOF while looking for matching `'' bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16) Differential Revision: https://reviews.llvm.org/D36064 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309568 91177308-0d34-0410-b5e6-96231b3b80d8 Don Hinton 2 years ago
2 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1414 BUILDSCRIPT_ARGS=""
1515
1616 function show_usage() {
17 usage=$(cat << EOF
17 cat << EOF
1818 Usage: build_docker_image.sh [options] [-- [cmake_args]...]
1919
2020 Available options:
6363 -DCLANG_ENABLE_BOOTSTRAP=ON \
6464 -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
6565 EOF
66 )
67 echo "$usage"
6866 }
6967
7068 SEEN_INSTALL_TARGET=0
1010 set -e
1111
1212 function show_usage() {
13 usage=$(cat << EOF
13 cat << EOF
1414 Usage: build_install_llvm.sh [options] -- [cmake-args]
1515
1616 Checkout svn sources and run cmake with the specified arguments. Used
3636
3737 All options after '--' are passed to CMake invocation.
3838 EOF
39 )
40 echo "$usage"
4139 }
4240
4341 LLVM_SVN_REV=""