X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fsdks%2Fagl%2F_build-sdks-json.sh;h=4d67bbf6aef019a33533f844c3bdbe55b9ff0986;hb=add6f928e6a95d14b511ebd59e0fba231747cdbb;hp=6539c5b8a1144be7e91d71584322cd4a87cec659;hpb=ecef0475a0a9d51e1a8842fbf0e0b9a948565cbd;p=src%2Fxds%2Fxds-server.git diff --git a/scripts/sdks/agl/_build-sdks-json.sh b/scripts/sdks/agl/_build-sdks-json.sh index 6539c5b..4d67bbf 100755 --- a/scripts/sdks/agl/_build-sdks-json.sh +++ b/scripts/sdks/agl/_build-sdks-json.sh @@ -30,8 +30,11 @@ DOWNLOADABLE_AGL_URLS=" release/eel/5.1.0/* release/eel/latest/* - release/flounder/6.0.0/* + release/flounder/6.0.3/* release/flounder/latest/* + + release/guppy/6.99.2/* + release/guppy/latest/* " # release/dab/4.0.2/* # @@ -49,7 +52,7 @@ IMG_AGL_URL_SUFFIX="/deploy/images/" ####################################### ### Define urls where SDKs can be downloaded / IoT.bzh part -SDK_IOTBZH_BASEURL="http://iot.bzh/download/public/XDS/images/" +SDK_IOTBZH_BASEURL="https://iot.bzh/download/public/XDS/images/" DOWNLOADABLE_IOTBZH_URLS=" dab-m3ulcb/* @@ -59,9 +62,9 @@ DOWNLOADABLE_IOTBZH_URLS=" flounder-h3ulcb/* flounder-m3ulcb/* flounder-qemux86-64/* - - master-m3ulcb/* " +# master-m3ulcb/* + SDK_IOTBZH_URL_SUFFIX="/sdk/" IMG_IOTBZH_URL_SUFFIX="/images/" @@ -204,9 +207,9 @@ EndOfMessage } DEBUG=0 -if [[ ${1:0:2} = "-v" ]] ; then - verbose=$(echo -s ${1} | sed -E "s/-([v]+).*/\1/") - DEBUG=$(echo ${verbose} | wc -c) +if [ "${1}" = "-v" ] ; then + shift + DEBUG=${1} echo "Set verbosity level to : ${DEBUG}" shift fi @@ -216,7 +219,8 @@ sdksList=" " for base_url in $DOWNLOADABLE_AGL_URLS do dbg_debug "Look into ${base_url}" - urls="$(expand_url $base_url $SDK_AGL_BASEURL)" + urls="$(expand_url ${base_url} $SDK_AGL_BASEURL)" + [ "$urls" = "" ] && { echo "ERROR: empty response while expanding ${SDK_AGL_BASEURL}${base_url}"; exit 1; } for url in $urls do dbg_debug "URL to check: ${url}" @@ -227,7 +231,8 @@ done for base_url in $DOWNLOADABLE_IOTBZH_URLS do dbg_debug "Look into ${base_url}" - urls="$(expand_url $base_url $SDK_IOTBZH_BASEURL)" + urls="$(expand_url ${base_url} $SDK_IOTBZH_BASEURL)" + [ "$urls" = "" ] && { echo "ERROR: empty response while expanding ${SDK_IOTBZH_BASEURL}${base_url}"; exit 1; } for url in $urls do dbg_debug "URL to check: ${url}"