Blame vars/dist_minipix_links.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
#
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
#
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
pkg_dist_minipix_links_all() {
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
	local _pname _pname_tgt;
Lucio Andrés Illanes Albornoz (arab, vxp) 5d1368
	ex_rtl_fileop rm "${PREFIX_MINIPIX}/lib"	\
Lucio Andrés Illanes Albornoz (arab, vxp) 5d1368
		"${PREFIX_MINIPIX}/libexec" "${PREFIX_MINIPIX}/share";
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
	for _pname in $(find "${PREFIX_MINIPIX}" -type l); do
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
		_pname_tgt="$(readlink -e "${_pname}")";
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
		if ex_rtl_fileop_test "${_pname_tgt}"; then
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
			ex_rtl_fileop rm "${_pname}";
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
			ex_rtl_fileop cp "${_pname_tgt}" "${_pname}";
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
};
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
Lucio Andrés Illanes Albornoz (arab, vxp) 3a48d3
# vim:filetype=sh