Blame subr.pkg/pkg_install_subdirs.subr

Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
#
8d7a8a
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂ­a Andrea Illanes Albornoz <lucia@luciaillanes.de>
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
#
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_install_subdirs() {
e9fa07
	local	_pis_group_name="${1}" _pkg_name="${2}" _restart_at="${3}"	\
e9fa07
		_pis_gspec="";
e9fa07
e9fa07
	for _pis_gspec in 					\
Lucio Andrés Illanes Albornoz e1d469
			"${PKG_INSTALL_FILES_DESTDIR:-}"	\
Lucio Andrés Illanes Albornoz e1d469
			"${PKG_INSTALL_FILES_DESTDIR_EXTRA:-}"; do
e9fa07
		if ! rtl_install "${PKG_DESTDIR}" ${_pis_gspec}; then
Lucio Andrés Illanes Albornoz bf9edf
			return 1;
Lucio Andrés Illanes Albornoz bf9edf
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	done;
e9fa07
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	if [ "${PKG_PREFIX%/}" = "${PREFIX_NATIVE%/}" ]; then
Lucio Andrés Illanes Albornoz bf9edf
		if ! rtl_install "${PKG_DESTDIR}/${DEFAULT_TARGET}" ${PKG_INSTALL_FILES_DESTDIR}; then
Lucio Andrés Illanes Albornoz bf9edf
			return 1;
Lucio Andrés Illanes Albornoz bf9edf
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	fi;
e9fa07
e9fa07
	return 0;
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
};
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
64844b
# vim:filetype=sh textwidth=0