implement blends sourced from the web

This commit is contained in:
parazyd 2016-10-31 08:47:13 +01:00
parent 4dcc8ff379
commit 421068e588
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit eb174853f16e2295dc07e071a8d33eecd0ce9d90
Subproject commit dd5d5d9d368854d9493941e39f61b471eccd5762

10
sdk
View File

@ -98,9 +98,17 @@ load() {
oslib="${os_map[$os]}"
blendlib="${blend_map[$blend]}"
[[ $blendlib =~ '^http\:' ]] && {
notice "grabbing blend from the internetz"
pushd $R/extra/blends
curl -O $blendlib
popd
blendlib="$R/extra/blends/$(basename $blendlib)"
}
[[ -f $boardlib ]] || { die "no valid boards specified"; exit 1 }
[[ -f $oslib ]] || { die "no valid distro specified"; exit 1 }
[[ -f $blendlib ]] || { warn "no valid blend specified"; exit 1 }
[[ -f $blendlib ]] || warn "no valid blend specified"
[[ -f $boardlib ]] && source $boardlib && act "$device_name build script loaded"
[[ -f $oslib ]] && source $oslib