diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-10-09 18:11:27 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-10-09 18:11:27 +0200 |
commit | 8861c188ae6c91b0a76c98a365366c807d3bd38e (patch) | |
tree | fcdb5964fe239996de3c7100eb0f60377a5df862 /scripts/sdks/agl | |
parent | fd259104f41b4a9d79e1952ef453693f055bdb91 (diff) |
Update naming of SDKs provided by IoT.bzh
Change-Id: I83df3abdb19c5075353510cba9dc296de8c04548
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/sdks/agl')
-rwxr-xr-x | scripts/sdks/agl/_build-sdks-json.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/sdks/agl/_build-sdks-json.sh b/scripts/sdks/agl/_build-sdks-json.sh index 60e0e71..1357d63 100755 --- a/scripts/sdks/agl/_build-sdks-json.sh +++ b/scripts/sdks/agl/_build-sdks-json.sh @@ -88,8 +88,11 @@ for url in $(echo $urls); do arch=$(echo "${sdkFile}" | sed -r 's/.*crosssdk-(.*)-toolchain.*/\1/') endUrl=${url#$SDK_AGL_BASEURL} - if [ "${endUrl::4}" = "http" ]; then - name=${profile}_${arch}_${version} + if [ "${url::14}" = "http://iot.bzh" ]; then + endUrl=${url#$SDK_AGL_IOTBZH_BASEURL} + name=$(echo "IoTbzh-$(echo ${endUrl} | cut -d'/' -f3,4 | sed s:/:-:g)-${version}") + elif [ "${endUrl::4}" = "http" ]; then + name="${profile}_${arch}_${version}" else name=$(echo "AGL-$(echo ${endUrl} | cut -d'/' -f2,3,4,5)" | sed s:/:-:g) fi |