Compare commits
5 commits
ba1e93eac5
...
d388d30d0c
Author | SHA1 | Date | |
---|---|---|---|
d388d30d0c | |||
90527c0078 | |||
25dba9af19 | |||
f920e596d9 | |||
9ed69a111b |
3 changed files with 34 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
||||||
|
disable=2312
|
||||||
enable=all
|
enable=all
|
||||||
shell=sh
|
shell=sh
|
||||||
|
|
|
@ -276,4 +276,7 @@ Handle project workflows in a unified way:
|
||||||
|
|
||||||
* automate versions fetching
|
* automate versions fetching
|
||||||
* handle openh264 repositories
|
* handle openh264 repositories
|
||||||
|
* languages
|
||||||
|
* handle different ones
|
||||||
|
* translate to french
|
||||||
* try to support nix
|
* try to support nix
|
||||||
|
|
|
@ -172,6 +172,21 @@ _spcd_step_wipe() {
|
||||||
"__SPCD_STEP_${__SPCD_STEP_LEVEL}_LABEL"
|
"__SPCD_STEP_${__SPCD_STEP_LEVEL}_LABEL"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ╭───┬─────╮
|
||||||
|
# │ _ │ txt │
|
||||||
|
# ╰───┴─────╯
|
||||||
|
|
||||||
|
_SPCD_TXT_LANGUAGE_ENGLISH="en"
|
||||||
|
_SPCD_TXT_LANGUAGE_FRENCH="fr"
|
||||||
|
|
||||||
|
_spcd_txt_pick() {
|
||||||
|
case "${SPCD_TXT_LANGUAGE}" in
|
||||||
|
"${_SPCD_TXT_LANGUAGE_ENGLISH}") echo "${2}" ;;
|
||||||
|
"${_SPCD_TXT_LANGUAGE_FRENCH}") echo "${1}" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# ╭───────────╮
|
# ╭───────────╮
|
||||||
# │ functions │
|
# │ functions │
|
||||||
# ╰───────────╯
|
# ╰───────────╯
|
||||||
|
@ -303,6 +318,17 @@ spcd_step_out() {
|
||||||
__SPCD_STEP_LEVEL=$((__SPCD_STEP_LEVEL - 1))
|
__SPCD_STEP_LEVEL=$((__SPCD_STEP_LEVEL - 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ╭───────────┬─────╮
|
||||||
|
# │ functions │ txt │
|
||||||
|
# ╰───────────┴─────╯
|
||||||
|
|
||||||
|
spcd_txt_get() {
|
||||||
|
case "${1}" in
|
||||||
|
"set") _spcd_txt_pick "Set" "Définir" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# ╭──────╮
|
# ╭──────╮
|
||||||
# │ step │
|
# │ step │
|
||||||
# ╰──────╯
|
# ╰──────╯
|
||||||
|
@ -341,6 +367,7 @@ spcd_step__environment_defaults_print() {
|
||||||
"REF_FEATURE" \
|
"REF_FEATURE" \
|
||||||
"REF_RELEASE" \
|
"REF_RELEASE" \
|
||||||
"REF_STAGING" \
|
"REF_STAGING" \
|
||||||
|
"TXT_LANGUAGE" \
|
||||||
"URL_ALMA" \
|
"URL_ALMA" \
|
||||||
"URL_ALPINE" \
|
"URL_ALPINE" \
|
||||||
"URL_ARCH" \
|
"URL_ARCH" \
|
||||||
|
@ -361,7 +388,7 @@ spcd_step__environment_defaults_print() {
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_step__environment_defaults_set() {
|
spcd_step__environment_defaults_set() {
|
||||||
spcd_step "Set"
|
spcd_step "$(spcd_txt_get "set")"
|
||||||
[ -n "${SPCD_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum"
|
[ -n "${SPCD_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum"
|
||||||
|
|
||||||
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
||||||
|
@ -375,6 +402,8 @@ spcd_step__environment_defaults_set() {
|
||||||
[ -n "${SPCD_REF_RELEASE}" ] || SPCD_REF_RELEASE="main"
|
[ -n "${SPCD_REF_RELEASE}" ] || SPCD_REF_RELEASE="main"
|
||||||
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
||||||
|
|
||||||
|
[ -n "${SPCD_TXT_LANGUAGE}" ] || SPCD_TXT_LANGUAGE="en"
|
||||||
|
|
||||||
[ -n "${SPCD_URL_ALMA}" ] ||
|
[ -n "${SPCD_URL_ALMA}" ] ||
|
||||||
# /almalinux/$releasever/…
|
# /almalinux/$releasever/…
|
||||||
# /vault/$releasever/…
|
# /vault/$releasever/…
|
||||||
|
|
Loading…
Add table
Reference in a new issue