Blame subr/pkg_install_subdirs.subr

Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
#
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() {
Lucio Andrés Illanes Albornoz 907bd3
	local _spec="";
Lucio Andrés Illanes Albornoz 2b85d0
	for _spec in \
Lucio Andrés Illanes Albornoz e1d469
			"${PKG_INSTALL_FILES_DESTDIR:-}"	\
Lucio Andrés Illanes Albornoz e1d469
			"${PKG_INSTALL_FILES_DESTDIR_EXTRA:-}"; do
Lucio Andrés Illanes Albornoz bf9edf
		if ! rtl_install "${PKG_DESTDIR}" ${_spec}; 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;
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;
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
};
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
# vim:filetype=sh