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

pkg_install_subdirs() {
	local _spec="";
	for _spec in \
			"${PKG_INSTALL_FILES_DESTDIR:-}"	\
			"${PKG_INSTALL_FILES_DESTDIR_EXTRA:-}"; do
		if ! rtl_install "${PKG_DESTDIR}" ${_spec}; then
			return 1;
		fi;
	done;
	if [ "${PKG_PREFIX%/}" = "${PREFIX_NATIVE%/}" ]; then
		if ! rtl_install "${PKG_DESTDIR}/${DEFAULT_TARGET}" ${PKG_INSTALL_FILES_DESTDIR}; then
			return 1;
		fi;
	fi;
};

# vim:filetype=sh