Check-in [feb20a3126]
Overview
Comment:Better handling of the case where no SDK is available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:feb20a31262d2384da420cb15e9d2eec5a2a2b0f
User & Date: rkeene on 2019-09-17 16:31:06
Other Links: manifest | tags
Context
2020-01-22
18:44
Upgrade to Tcl/Tk 8.6.10 check-in: e6fc8fa373 user: rkeene tags: trunk
2019-09-17
16:31
Better handling of the case where no SDK is available check-in: feb20a3126 user: rkeene tags: trunk
16:16
Add support for fetching the SDK over the API check-in: 2ec364d475 user: rkeene tags: trunk
Changes

Modified build/utils/download-api-client from [3a69b30ec1] to [ca3758bbcf].

   146    146   	fi
   147    147   
   148    148   	exit 1
   149    149   fi
   150    150   
   151    151   if [ "${downloadSDK}" = 'false' ]; then
   152    152   	kit_url="$(jq -crM .kit_url <<<"${info}")"
          153  +	if [ "${kit_url}" = 'null' ]; then
          154  +		kit_url=''
          155  +	fi
          156  +	if [ "${kit_url}" = '' ]; then
          157  +		echo "No download available." >&2
          158  +
          159  +		exit 1
          160  +	fi
   153    161   	if [ -z "${kit_filename}" ]; then
   154    162   		kit_filename="${kit_url//*\//}"
   155    163   		case "${kit_filename}" in
   156    164   			*.*)
   157    165   				kit_filename_base="${kit_filename//.*/}"
   158    166   				kit_filename_ext=".${kit_filename//*./}"
   159    167   				;;
................................................................................
   167    175   		kit_filename="${kit_filename_base}-${kit_filename_platform}-${kit_filename_tcl_version}${kit_filename_ext}"
   168    176   	fi
   169    177   
   170    178   	curl -sSL "${kit_url}" > "${kit_filename}"
   171    179   	chmod 755 "${kit_filename}"
   172    180   else
   173    181   	kit_sdk_url="$(jq -crM .kit_sdk_url <<<"${info}")"
          182  +	if [ "${kit_sdk_url}" = 'null' ]; then
          183  +		kit_sdk_url=''
          184  +	fi
          185  +	if [ "${kit_sdk_url}" = '' ]; then
          186  +		echo "No SDK available." >&2
          187  +		exit 1
          188  +	fi
   174    189   	if [ -z "${kit_filename}" ]; then
   175    190   		kit_filename="${kit_sdk_url//*\//}"
   176    191   	fi
   177    192   
   178    193   	curl -sSL "${kit_sdk_url}" > "${kit_filename}"
   179    194   fi
   180    195   
   181    196   echo "Wrote: ${kit_filename}"
   182    197   exit 0