summaryrefslogtreecommitdiffhomepage
path: root/vars/dist_minipix_links.vars
diff options
context:
space:
mode:
Diffstat (limited to 'vars/dist_minipix_links.vars')
-rw-r--r--vars/dist_minipix_links.vars16
1 files changed, 16 insertions, 0 deletions
diff --git a/vars/dist_minipix_links.vars b/vars/dist_minipix_links.vars
new file mode 100644
index 00000000..c432c2de
--- /dev/null
+++ b/vars/dist_minipix_links.vars
@@ -0,0 +1,16 @@
+#
+# set -o errexit -o noglob are assumed.
+#
+
+pkg_dist_minipix_links_all() {
+ local _pname _pname_tgt;
+ 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