midipix / 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) 074052
	local _dist_pfx="${PREFIX_MINIPIX}" _bin_pname _lib_name;
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
	ex_rtl_fileop mkdir "${_dist_pfx}/bin";
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) b7b9af
		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) 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) b7b9af
			"${PREFIX_NATIVE}/lib/${_lib_name}" "${_dist_pfx}/bin";
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
	tar -C "${PREFIX_NATIVE}/share" -cpf - terminfo			|\
Lucio Andrés Illanes Albornoz (arab, vxp) b7b9af
		tar -C "${_dist_pfx}/bin" -xpf -;
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