diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-04 12:38:02 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-04 12:38:02 +0000 |
commit | 3a48d3534bb5022f6a807c02f74783f10b8c3b16 (patch) | |
tree | e9dbb87a062f6f11724a0d3cdd7be1d623cb6f79 | |
parent | 18dfad86a0a7e83baebf54f305909fc850066834 (diff) | |
download | midipix_build-3a48d3534bb5022f6a807c02f74783f10b8c3b16.tar.bz2 midipix_build-3a48d3534bb5022f6a807c02f74783f10b8c3b16.tar.xz |
vars/build.vars:dist: adds dist_minipix_libs.
vars/dist_minipix_links.vars: added, performing ${PREFIX_MINIPIX} link conversion.
-rw-r--r-- | vars/build.vars | 2 | ||||
-rw-r--r-- | vars/dist_minipix_links.vars | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/vars/build.vars b/vars/build.vars index 8910ff46..48ee62aa 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -1079,7 +1079,7 @@ DIST_MINIPIX_PREFIX="${PREFIX_MINIPIX}"; # Build target dist_target # DIST_TARGET_NO_LOG_VARS=1; -DIST_TARGET_PACKAGES="dist_minipix_libs dist_etc dist_digest dist_tarballs"; +DIST_TARGET_PACKAGES="dist_minipix_libs dist_minipix_links dist_etc dist_digest dist_tarballs"; # # Build targets 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 |