summaryrefslogtreecommitdiffstats
path: root/src/profile/proteanos.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:27:00 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:32:34 (EST)
commit561dc43e5b4b303232669903f9db1f318eb476a3 (patch)
treebc029ec8cf26ba89ef6900127fa3bb64566ac0de /src/profile/proteanos.sh
parentb5e1e7a5b8e3086002faa50cdd7c3c279e7e251e (diff)
profile_plat_arches(): New function
Diffstat (limited to 'src/profile/proteanos.sh')
-rw-r--r--src/profile/proteanos.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index f322adf..f44de08 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -70,6 +70,9 @@ _prof_proteanos_platforms_paragraph()
platform="${_prof_proteanos_platforms_platform}"
archplat="$(printf '%s' "${platform}" | tr -c '[a-z0-9/]' '_')"
+ eval "_prof_proteanos_archplat_arches_${archplat#*/}=$(: \
+ )\"\${_prof_proteanos_archplat_arches_${archplat#*/}-}$(: \
+ )\${platform%/*}\""
archplat="${archplat%/*}__${archplat#*/}"
_prof_proteanos_platforms="${_prof_proteanos_platforms}${platform} "
@@ -133,6 +136,14 @@ prof_proteanos_default_plat()
printf 'dev\n'
}
+prof_proteanos_plat_arches()
+{
+ local plat="${1}"
+ shift 1
+
+ eval "printf '%s\\n' \${_prof_proteanos_archplat_arches_${plat}}"
+}
+
prof_proteanos_select_mirror()
{
local mirrors=