Blob Blame History Raw
#
# set -o errexit -o noglob are assumed.
#

ex_setup_subdirs() {
	local __;
	if [ ${ARG_CLEAN:-0} -eq 1 ]; then
		ex_log_msg info "-c specified, cleaning prefix...";
		for __ in ${CLEAR_PREFIX_DIRS}; do
			if [ -e ${PREFIX}/${__} ]; then
				build_rm ${PREFIX}/${__};
			fi;
		done;
	fi;
	pkg_install_files ""					\
		/=${DLCACHEDIR}					\
		/=${WORKDIR}					\
		/=${PREFIX}					\
		/=${PREFIX}/bin					\
		/=${PREFIX}/share/man				\
		/=${PREFIX}/${TARGET}/bin			\
		/=${PREFIX}/${TARGET}/lib			\
		/=${PREFIX}/x86_64-w64-mingw32			\
		/=${PREFIX_CROSS}				\
		/=${PREFIX_MINIPIX}/bin				\
		/=${PREFIX_NATIVE}				\
		/=${PREFIX_NATIVE}/share/man			\
		/=${PREFIX_NATIVE}/${TARGET}/lib		\
		@.=${PREFIX}/usr				\
		@.=${PREFIX}/x86_64-w64-mingw32/mingw		\
		/=${PREFIX}/x86_64-w64-mingw32/mingw/include	\
		@.=${PREFIX_NATIVE}/usr				\
		@lib=${PREFIX}/lib64				\
		@bin=${PREFIX_MINIPIX}/lib			\
		@bin=${PREFIX_MINIPIX}/libexec			\
		@bin=${PREFIX_MINIPIX}/share			\
		@share/man=${PREFIX}/man			\
		@share/man=${PREFIX_NATIVE}/man;
};

# vim:filetype=sh