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) 5372bb
	for _lib_name in libc.so libcurl.so.0 liblzma.so.5 libmagic.so.1		\
Lucio Andrés Illanes Albornoz (arab, vxp) 40f8cd
			libncursesw.so.6 libpcre.so.1 libpsxscl.so libu16ports.so.0	\
Lucio Andrés Illanes Albornoz (arab, vxp) 40f8cd
			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) 877862
	for _shared_pname in nano vim; do
Lucio Andrés Illanes Albornoz (arab, vxp) 58ae02
		ex_rtl_fileop cp_follow							\
Lucio Andrés Illanes Albornoz (arab, vxp) 58ae02
			"${PREFIX_NATIVE}/share/${_shared_pname}" "${_dist_pfx}/share";
Lucio Andrés Illanes Albornoz (arab, vxp) 58ae02
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 877862
	ex_rtl_fileop ln_symbolic "nano/nanorc.nanorc" "${_dist_pfx}/share/nanorc";
Lucio Andrés Illanes Albornoz (arab, vxp) 877862
	ex_rtl_fileop ln_symbolic "vim/vim74/vimrc_example.vim" "${_dist_pfx}/share/vimrc";
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