summaryrefslogtreecommitdiffhomepage
path: root/subr.rtl/rtl_complex.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-10 15:26:25 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-10 15:26:25 +0100
commit3e5303fb9ba19addfcb672c1f3aa78d02efb7ebc (patch)
tree448feaab5f16dcf1c450efebde18b0f56c3b0ebf /subr.rtl/rtl_complex.subr
parente1a4743914675267e94b3510bea6d8c8c357a32e (diff)
downloadmidipix_build-3e5303fb9ba19addfcb672c1f3aa78d02efb7ebc.tar.bz2
midipix_build-3e5303fb9ba19addfcb672c1f3aa78d02efb7ebc.tar.xz
Implements {fetch,configure,build,install}_clean.
build.sh:buildp_dispatch_fail_pkg(): print NL when writing to ${DEFAULT_BUILD_LAST_FAILED_PKG_FNAME}. etc/{README.md,build.usage}: updated. midipix.env: updated. subr.rtl/rtl_complex.subr:rtl_sunset(): initial implementation. subr.rtl/rtl_list.subr:rtl_l{filter[23],length2,lift[23]}(): initial implementation. subr.rtl/rtl_state.subr:rtl_state_test(): take ${_build_steps} vs. ${_build_step}. subr/{build_init,ex_pkg_restart}.subr: splits extended restart syntax processing logic. subr/ex_pkg_exec.subr:ex_pkg_exec(): filter "start". subr/pkg_{build,configure,fetch,install}_clean.subr: initial implementation.
Diffstat (limited to 'subr.rtl/rtl_complex.subr')
-rw-r--r--subr.rtl/rtl_complex.subr8
1 files changed, 8 insertions, 0 deletions
diff --git a/subr.rtl/rtl_complex.subr b/subr.rtl/rtl_complex.subr
index 8866484f..61637f69 100644
--- a/subr.rtl/rtl_complex.subr
+++ b/subr.rtl/rtl_complex.subr
@@ -72,4 +72,12 @@ rtl_percentage() {
printf "%d\n" "${_perc}";
};
+rtl_sunset() {
+ local _rs_rset="${1#\$}" _rs_kname="" IFS=" ";
+ eval set -- '${'"${_rs_rset}"'}';
+ while [ "${#}" -gt 0 ]; do
+ unset "${_rs_rset}${_rs_kname}"; shift;
+ done; unset "${_rs_rset}";
+};
+
# vim:filetype=sh