blob: af4a99f9b0bbdd6ce1eec0b29a0b8d086a64573b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#
# set -o errexit -o noglob are assumed.
#
pkg_dist_minipix_links_all() {
local _pname _pname_tgt;
ex_rtl_fileop rm "${PREFIX_MINIPIX}/lib" \
"${PREFIX_MINIPIX}/libexec" "${PREFIX_MINIPIX}/share";
for _pname in $(find "${PREFIX_MINIPIX}" -type l); do
_pname_tgt="$(readlink -e "${_pname}")";
if ex_rtl_fileop test "${_pname_tgt}"; then
ex_rtl_fileop rm "${_pname}";
ex_rtl_fileop cp "${_pname_tgt}" "${_pname}";
fi;
done;
};
# vim:filetype=sh
|