summaryrefslogtreecommitdiffhomepage
path: root/subr/pkgtool_init.subr
AgeCommit message (Collapse)AuthorFilesLines
2021-08-26Implements localised message files.Lucio Andrés Illanes Albornoz1-9/+17
2021-08-26Optionally source etc/{build,pkgtool}.theme.local.Lucio Andrés Illanes Albornoz1-0/+5
.gitignore: updated.
2021-08-26Implements logging tags, tag sets, and themes.Lucio Andrés Illanes Albornoz1-3/+11
subr/pkgtool_init.subr:pkgtoolp_init_args(): set ${BUILD_HNAME}.
2021-08-25subr/build_init.subr:buildp_init_getopts(): filter etc/build.usage{,.short} ↵Lucio Andrés Illanes Albornoz1-1/+6
if stdout does not refer to a tty. subr/pkgtool_init.subr:pkgtoolp_init_getopts_help(): filter etc/pkgtool.usage if stdout does not refer to a tty.
2021-04-05pkgtool.sh:pkgtoolp_mirror_fetch(), subr/pkgtool_init.subr: implement and ↵Lucio Andrés Illanes Albornoz1-3/+9
honour -v. etc/{pkgtool.usage,README.md}: updated.
2021-04-05pkgtool.sh:pkgtool{,p_mirror}(): split -m <dname1>,<dname2> into -m <dname> ↵Lucio Andrés Illanes Albornoz1-4/+6
-M <dname> for convenience. subr/pkgtool_init.subr: split -m <dname1>,<dname2> into -m <dname> -M <dname> for convenience. etc/{pkgtool.usage,README.md}: updated.
2021-01-23Implements setting up & fetching from mirrors.Lucio Andrés Illanes Albornoz1-6/+8
etc/pkgtool.usage: updated. etc/README.md: updated. pkgtool.sh:pkgtoolp_mirror{,_fetch}(): initial implementation. subr/pkg_fetch_download.subr: default to empty ${PKG_MIRRORS}. subr/pkg_fetch_download.subr: factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}. subr/pkgtool_init.subr: updated. subr.rtl/rtl_fetch.subr:rtl_fetch_urls_{git,wget}(): factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}; minor cleanup. subr.rtl/rtl_fetch.subr:rtl_fetch_url_wget(): return vs. exit on fatal failure. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): copy only if ${_cache_dname} != ${_tgtdir}. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): return if unable to git-clone(1). subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): implement Git repository mirroring. vars/{gcc,python[23]{,_host}}.vars: updated.
2020-12-30subr/rtl*.subr, subr.rtl/: moved.Lucio Andrés Illanes Albornoz1-1/+1
subr/build_init.subr:buildp_init_env(): updated. subr/pkgtool_init.subr:pkgtoolp_init_env(): updated.
2020-11-26subr/build_init.subr:buildp_init_files(): export TMP{,DIR}=${BUILD_WORKDIR}.Lucio Andrés Illanes Albornoz1-1/+1
subr/pkgtool_init.subr:pkgtoolp_init_args(): export TMP{,DIR}=${BUILD_WORKDIR}.
2020-09-10subr/pkgtool_init.subr:pkgtoolp_init_getopts(): allow overriding ↵Lucio Andrés Illanes Albornoz1-5/+1
${PKGTOOL_PKG_NAME} w/ -s[ -s[..]].
2020-05-30subr/pkgtool_init.subr:pkgtoolp_init_getopts(): correctly set ${BUILD_KIND}.Lucio Andrés Illanes Albornoz1-1/+1
2020-05-11subr/build_init.subr:buildp_init_getopts(): allow mixing non-option ↵Lucio Andrés Illanes Albornoz1-17/+11
arguments w/ options. subr/pkgtool_init.subr:pkgtoolp_init_getopts(): allow mixing non-option arguments w/ options.
2020-05-11subr/pkgtool_init.subr:pkgtoolp_init_getopts(): clarify invalid command line ↵Lucio Andrés Illanes Albornoz1-1/+1
error message.
2020-05-11subr/pkgtool_init.subr:pkgtoolp_init_getopts(): correctly initialise ↵Lucio Andrés Illanes Albornoz1-1/+1
${BUILD_KIND}.
2020-04-10subr/pkgtool_init.subr:pkgtoolp_init_getopts_help(): correctly cat ↵Lucio Andrés Illanes Albornoz1-1/+1
etc/pkgtool.usage given -h option.
2020-03-19subr/{build,pkgtool}_init.subr: minor cleanup.Lucio Andrés Illanes Albornoz1-13/+16
subr/rtl_complex.subr:rtl_{check_prereqs,prompt,rc}(): initial implementation.
2020-03-15Set -o nounset in addition to +o errexit -o nounset.Lucio Andrés Illanes Albornoz1-1/+1
groups/000.host_tools.group:libtool_host:${PKG_LIBTOOL}: build w/ `none'. subr/build_init.subr:buildp_init_getopts(): set ${DEFAULT_BUILD_CPUS} prior to ex_pkg_load_vars() call. subr/pkg_{build,install_make}.subr: only pass `LIBTOOL=${PKG_LIBTOOL}' if set and not `none'. vars/libtool_host.vars: removes obsolete vars file.
2020-03-15General cleanup.Lucio Andrés Illanes Albornoz1-137/+32
2020-03-13subr/pkgtool_init.subr:pkgtoolp_init_prereqs(): trim list of prerequisite ↵Lucio Andrés Illanes Albornoz1-5/+3
command dependencies.
2020-03-13Implements ./pkgtool.sh -[irt] options.Lucio Andrés Illanes Albornoz1-18/+107
etc/{README.md,pkgtool.usage}: updated. subr/ex_pkg.subr:ex_pkg_{find_package,get_packages}(): initial implementation. subr/ex_pkg.subr:ex_pkg_unfold_{,r}depends(): split from ex_pkg_expand_packages(). subr/ex_pkg{,_dispatch}.subr: removes ${EX_PKG_COMPLETE} scoped global. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_expand_packages(): split from subr/ex_pkg.subr. subr/rtl_list.subr:rtl_lsort(): initial implementation.
2020-03-11Initial implementation of pkgtool.sh.Lucio Andrés Illanes Albornoz1-0/+133
build.sh:build(): move cd(1) to $(dirname "${0}"). etc/{build.usage,README.md}: updated. midipix.env:${DEFAULT_CLEAR_ENV_VARS_EXCEPT}: allow inheriting ARCH, BUILD, BUILD_DLCACHEDIR, BUILD_WORKDIR, and PREFIX* from the environment. pkgtool.sh: initial implementation. subr/build_init.subr:buildp_init_defaults(): allow inheriting ARCH, BUILD, BUILD_DLCACHEDIR, BUILD_WORKDIR, and PREFIX* from the environment. subr/build_init.subr:buildp_init_env(): move cd(1) to $(dirname "${0}"). subr/build_init.subr:buildp_init_files(): correctly pass ${_status} from rtl_check_path_vars(). subr/ex_pkg_exec.subr:ex_pkg_exec(): dump subset of variables and exported variables on build failure and --dump-on-abort. subr/pkgtool_init.subr: adapted from subr/build_init.subr. subr/rtl_complex.subr:rtl_filter_vars(): initial implementation. subr/rtl_string.subr:rtl_subst(): initial implementation.