[PATCH] D36064: [docker] Fix unmatched quote problem in here-document on older versions of bash

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 08:19:43 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL309568: [docker] Fix unmatched quote problem in here-document on older versions of bash (authored by dhinton).

Repository:
  rL LLVM

https://reviews.llvm.org/D36064

Files:
  llvm/trunk/utils/docker/build_docker_image.sh
  llvm/trunk/utils/docker/scripts/build_install_llvm.sh


Index: llvm/trunk/utils/docker/scripts/build_install_llvm.sh
===================================================================
--- llvm/trunk/utils/docker/scripts/build_install_llvm.sh
+++ llvm/trunk/utils/docker/scripts/build_install_llvm.sh
@@ -11,7 +11,7 @@
 set -e
 
 function show_usage() {
-  usage=$(cat << EOF
+  cat << EOF
 Usage: build_install_llvm.sh [options] -- [cmake-args]
 
 Checkout svn sources and run cmake with the specified arguments. Used
@@ -37,8 +37,6 @@
 
 All options after '--' are passed to CMake invocation.
 EOF
-)
-  echo "$usage"
 }
 
 LLVM_SVN_REV=""
Index: llvm/trunk/utils/docker/build_docker_image.sh
===================================================================
--- llvm/trunk/utils/docker/build_docker_image.sh
+++ llvm/trunk/utils/docker/build_docker_image.sh
@@ -15,7 +15,7 @@
 BUILDSCRIPT_ARGS=""
 
 function show_usage() {
-  usage=$(cat << EOF
+  cat << EOF
 Usage: build_docker_image.sh [options] [-- [cmake_args]...]
 
 Available options:
@@ -64,8 +64,6 @@
     -DCLANG_ENABLE_BOOTSTRAP=ON \ 
     -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
 EOF
-)
-  echo "$usage"
 }
 
 SEEN_INSTALL_TARGET=0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36064.108930.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170731/1636c657/attachment.bin>


More information about the llvm-commits mailing list