Blame vars/dist_minipix_dist.vars

Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
#
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
#
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
Lucio Andrés Illanes Albornoz (arab, vxp) 0dd43a
pkg_dist_minipix_dist_all() {
Lucio Andrés Illanes Albornoz 907bd3
	local _dist_pfx="${PREFIX_MINIPIX}" _bin_pname="" _lib_name=""			\
Lucio Andrés Illanes Albornoz 907bd3
		_term="" _term_letter="";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	ex_rtl_fileop rm "${_dist_pfx}";
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
	ex_rtl_fileop mkdir "${_dist_pfx}" "${_dist_pfx}/bin" "${_dist_pfx}/share";
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
	for _bin_pname in $(find "${PREFIX}/minipix_dist/bin"				\
Lucio Andrés Illanes Albornoz (arab, vxp) 5b9227
			-maxdepth 1 -perm /a=x -type f -and \( -not -name "lib*" \)); do
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
		ex_rtl_fileop cp_follow "${_bin_pname}"	"${_dist_pfx}/bin";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
	for _lib_name in libc.so libmagic.so.1 libncursesw.so.6 libpsxscl.so libu16ports.so.0 libz.so.1; do
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
		ex_rtl_fileop cp_follow							\
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
			"${PREFIX_NATIVE}/lib/${_lib_name}" "${_dist_pfx}/bin";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
	for _term in putty putty-256color screen screen-256color xterm xterm-256color; do
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
		_term_letter="${_term%${_term#[a-zA-Z]}}";
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
		ex_rtl_fileop mkdir "${_dist_pfx}/share/terminfo/${_term_letter}";
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
		ex_rtl_fileop cp_follow							\
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
			"${PREFIX_NATIVE}/share/terminfo/${_term_letter}/${_term}"	\
Lucio Andrés Illanes Albornoz (arab, vxp) bbd35a
			"${_dist_pfx}/share/terminfo/${_term_letter}";
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
};
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
# vim:filetype=sh