Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

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 (arab, vxp) 8c7192
	local _dist_pfx="${PREFIX_MINIPIX}" _bin_pname _lib_name _term	\
Lucio Andrés Illanes Albornoz (arab, vxp) 8c7192
		_term_letter;
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	ex_rtl_fileop rm "${_dist_pfx}";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	ex_rtl_fileop mkdir "${_dist_pfx}";
Lucio Andrés Illanes Albornoz (arab, vxp) 5b9227
	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) 3a1672
		ex_rtl_fileop cp_follow "${_bin_pname}"	"${_dist_pfx}";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	for _lib_name in libc.so libncursesw.so.6 libpsxscl.so libu16ports.so.0; do
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
		ex_rtl_fileop cp_follow					\
Lucio Andrés Illanes Albornoz (arab, vxp) 3a1672
			"${PREFIX_NATIVE}/lib/${_lib_name}" "${_dist_pfx}";
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) 3a1672
		ex_rtl_fileop mkdir "${_dist_pfx}/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) 3a1672
			"${_dist_pfx}/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