From e9fa0774ed2e7e030a68f5b0ae51fe6dd69fe492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Fri, 17 Feb 2023 19:29:28 +0100 Subject: Make everything a bit faster. 0) Issues several prayers and sacrifices to Enki under threat of a terrible deluge sent down by Ellil 1) Convert fork-write/read exprs to be non-forking 2) Pass mostly everything by reference 3) Don't bother cleaning the variable namespace because Bourne shell is an abomination 4) Removes broken ./pkgtool.sh -s, --restart-at, --update-diff & ./build.sh --dump-{in,on-abort} 5) Cleanup --- subr/pkg_configure_patch_pre.subr | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 subr/pkg_configure_patch_pre.subr (limited to 'subr/pkg_configure_patch_pre.subr') diff --git a/subr/pkg_configure_patch_pre.subr b/subr/pkg_configure_patch_pre.subr deleted file mode 100644 index c78b65b2..00000000 --- a/subr/pkg_configure_patch_pre.subr +++ /dev/null @@ -1,38 +0,0 @@ -# -# set +o errexit -o noglob -o nounset is assumed. -# - -pkgp_configure_patch_pre() { - local _patch_path=""; - for _patch_path in \ - "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local.patch" \ - "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local@${BUILD_HNAME}.patch"; do - if [ -r "${_patch_path}" ]\ - && ! patch -b -d "${PKG_BASE_DIR}/${PKG_SUBDIR}" -p1 < "${_patch_path}"; then - return 1; - fi; - done; -}; - -pkgp_configure_patch_pre_chainport() { - local _chainport_patch_dname="" _chainport_patch_fname="" _oldpwd=""; - _chainport_patch_dname="${PKG_BASE_DIR}/${PKG_SUBDIR}/patches/${PKG_NAME%%_*}"; - if [ -n "${PKG_VERSION:-}" ]; then - _chainport_patch_fname="${BUILD_WORKDIR}/chainport/patches/${PKG_NAME%%_*}/${PKG_NAME%%_*}-${PKG_VERSION}.midipix.patch"; - fi; - if [ -e "${_chainport_patch_fname}" ]; then - if ! rtl_fileop mkdir "${_chainport_patch_dname}"\ - || ! rtl_fileop cp "${_chainport_patch_fname}" "${_chainport_patch_dname}"; then - return 1; - fi; - fi; -}; - -pkg_configure_patch_pre() { - if ! pkgp_configure_patch_pre_chainport\ - || ! pkgp_configure_patch_pre; then - return 1; - fi; -}; - -# vim:filetype=sh -- cgit v1.2.3