From 00331b09b0a7a237c0542fb528609765747ad066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 11 May 2021 14:47:13 +0100 Subject: subr/ex_pkg_restart.subr:ex_pkg_process_restart_spec(): correctly lift ${${_epprs_rspec}} into SP-separated list on return. devbuild.sh: updated. --- devbuild.sh | 27 +++++++++++++++++---------- subr/ex_pkg_restart.subr | 5 +++-- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/devbuild.sh b/devbuild.sh index c41f58ac..4900077e 100755 --- a/devbuild.sh +++ b/devbuild.sh @@ -1,28 +1,35 @@ #!/bin/sh +dmp_lift() { + local _rlist="${1#\$}" IFS="${2}" _IFS1="${3}"; + eval set -- '${'"${_rlist}"'}'; IFS="${_IFS1}"; eval ${_rlist}='${*}'; +}; + devbuild_midipix() { set -eu - DEV_PACKAGES=\ - musl_no_complex_host,musl_full_host,musl_full,\ - psxtypes,pemagine,dalist,ldso,ntcon,ntapi,\ - psxscl,psxscl_strace,ntctty,ntux,ptycon,toksvc,u16ports,\ - ntctty_minipix,ntux_minipix,ptycon_minipix,toksvc_minipix + DEV_PACKAGES=" \ + musl_no_complex_host musl_full_host musl_full \ + psxtypes pemagine dalist ldso ntcon ntapi \ + psxscl psxscl_strace ntctty ntux ptycon toksvc u16ports \ + ntctty_minipix ntux_minipix ptycon_minipix toksvc_minipix"; + dmp_lift \$DEV_PACKAGES " " ","; mb_project_dir=$(cd "$(dirname $0)" ; pwd) cd "$mb_project_dir" - ./build.sh -r ${DEV_PACKAGES} - ./build.sh -D minipix + ./build.sh -r "${DEV_PACKAGES}" "${@}"; + ./build.sh -D minipix "${@}"; }; devbuild_all() { - ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p 6 -v && ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p 6 -v; + ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p 6 -v &&\ + ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p 6 -v; }; case "${1:-}" in ---all) devbuild_all; ;; -*) devbuild_midipix; ;; +--all) shift; devbuild_all "${@}"; ;; +*) devbuild_midipix "${@}"; ;; esac; # vim:filetype=sh textwidth=0 diff --git a/subr/ex_pkg_restart.subr b/subr/ex_pkg_restart.subr index 6f9bfe98..b45851f2 100644 --- a/subr/ex_pkg_restart.subr +++ b/subr/ex_pkg_restart.subr @@ -280,8 +280,9 @@ ex_pkg_process_restart_spec() { if [ "${_epprs_step}" = "${_epprs_step1}" ]; then eval ${_epprs_rspec_at}='${'"${_epprs_rspec_at}"':+${'"${_epprs_rspec_at}"'},}finish'; fi; - fi; ;; - esac; + fi; + eval echo '${'"${_epprs_rspec}"'}'; ;; + esac; rtl_llift3 "${_epprs_rspec}" "," " " || _epprs_rc=1; else _epprs_rc=1; fi; -- cgit v1.2.3