summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install_subdirs.subr
blob: 379592f5f53b5f911b9337598cffc7c569c9c4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# set +o errexit -o noglob is assumed.
#

pkg_install_subdirs() {
	local _spec="";
	for _spec in \
			"${PKG_INSTALL_FILES_DESTDIR}"		\
			"${PKG_INSTALL_FILES_DESTDIR_EXTRA}"; do
		ex_rtl_install "${PKG_DESTDIR}" ${_spec} || return "${?}";
	done;
	if [ "${PKG_PREFIX%/}" = "${PREFIX_NATIVE%/}" ]; then
		ex_rtl_install					\
			"${PKG_DESTDIR}/${DEFAULT_TARGET}" ${PKG_INSTALL_FILES_DESTDIR} || return "${?}";
	fi;
};

# vim:filetype=sh