diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-15 21:53:19 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-15 20:57:14 +0000 |
commit | 48549ba666dd81312c25eb1cf2e9b1635ef5aff9 (patch) | |
tree | faed6329b6ce20f2cef62c1ea1380932293f15e9 /subr/build.subr | |
parent | 77fd19d0219e8a73096acc567f42ab54e2271ced (diff) | |
download | midipix_build-48549ba666dd81312c25eb1cf2e9b1635ef5aff9.tar.bz2 midipix_build-48549ba666dd81312c25eb1cf2e9b1635ef5aff9.tar.xz |
build.sh: set ${PKG_NAME_PARENT} for `flavoured' packages.
subr/build.subr: fix bug in log_env_vars().
subr/pkg_setup_env.subr: inherit and log variables from parent packages when processing `flavoured' packages.
vars/build.vars: replaces minipix packages w/ {bash,coreutils}_flavour_minipix, which are statically linked and installed to ${PREFIX_MINIPIX}.
vars/musl.vars: don't install libc.so to ${PREFIX_MINIPIX}/lib.
Diffstat (limited to 'subr/build.subr')
-rw-r--r-- | subr/build.subr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subr/build.subr b/subr/build.subr index 075575c2..91c03357 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -129,12 +129,12 @@ lmatch() { }; log_env_vars() { - local _nvar _arg _arg_len_max; + local _nvar=1 _arg _arg_len_max=0; log_msg info "Variables for this ${1:-build}:"; shift; - while [ ${_nvar:=0} -lt ${#} ]; do + while [ ${_nvar} -le ${#} ]; do _arg="$(eval echo \${${_nvar}})"; _arg="${_arg%%=*}"; - if [ ${#_arg} -gt ${_arg_len_max:=0} ]; then + if [ ${#_arg} -gt ${_arg_len_max} ]; then _arg_len_max=${#_arg}; fi; : $((_nvar+=1)); done; |