X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f7e241f4af6110236009bdb92b101519d382f6fd..ae93128c9671b58bdc2b557c382ecd84e659ab52:/bootstrap diff --git a/bootstrap b/bootstrap index 02176d28..00ea4bc1 100755 --- a/bootstrap +++ b/bootstrap @@ -36,7 +36,7 @@ bt_regex=`echo "$bt"| sed 's/\./[.]/g'` bt2=${bt}2 usage() { - echo >&2 "\ + cat </dev/null 2>&1; then - find_tool_res=$i - break + find_tool_res=$i + break fi done + else + find_tool_error_prefix="\$$find_tool_envvar: " fi if test x"$find_tool_res" = x; then echo >&2 "$0: one of these is required: $find_tool_names" exit 1 fi ($find_tool_res --version /dev/null 2>&1 || { - echo >&2 "$0: cannot run $find_tool_res --version" + echo >&2 "$0: ${find_tool_error_prefix}cannot run $find_tool_res --version" exit 1 } - eval "$find_tool_envvar=\"$find_tool_res\"" + eval "$find_tool_envvar=\$find_tool_res" eval "export $find_tool_envvar" }