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 b95c06
	for _bin_name in clear reset tset; do
Lucio Andrés Illanes Albornoz b95c06
		ex_rtl_fileop cp_follow "${PREFIX_NATIVE}/bin/${_bin_name}" "${_dist_pfx}/bin";
Lucio Andrés Illanes Albornoz b95c06
	done;
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) 6a602f
	for _lib_name in libc.so libcrypto.so.43 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 b4c30f
			libssl.so.45 libtinfo.so.6 libunistring.so.2 libuuid.so.1	\
Lucio Andrés Illanes Albornoz b4c30f
			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) 6a602f
			"${PREFIX}/minipix_dist/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