|
Lucio Andrés Illanes Albornoz |
0eaee4 |
#
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
#
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
|
|
Lucio Andrés Illanes Albornoz |
efeeb0 |
pkg_dist_minipix_all() {
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
local _dname="" _fname="" _pname="";
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
if rtl_lmatch "${ARG_DIST}" "minipix" ","; then
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
for _dname in "${PREFIX_MINIPIX}/bin" "${PREFIX_MINIPIX}/share"; do
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ ! -e "${_dname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop mkdir "${_dname}"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to create directory \`%s'." "${_dname}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
for _fname in clear reset tset; do
|
|
Lucio Andrés Illanes Albornoz |
97a260 |
if [ -e "${PREFIX_NATIVE}/bin/${_fname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
0d1c4f |
&& rtl_is_newer "${PREFIX_NATIVE}/bin/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop cp_follow "${PREFIX_NATIVE}/bin/${_fname}" "${PREFIX_MINIPIX}/bin"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to copy \`%s' to \`%s'." "${PREFIX_NATIVE}/bin/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
0d1c4f |
for _pname in $([ -e "${PREFIX}/minipix_dist/bin" ] && find "${PREFIX}/minipix_dist/bin"\
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
-maxdepth 1 -perm /a=x -type f -and \( -not -name "lib*" \)); do
|
|
Lucio Andrés Illanes Albornoz |
0d1c4f |
if rtl_is_newer "${_pname}" "${PREFIX_MINIPIX}/bin/${_pname##*/}"\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop cp_follow "${_pname}" "${PREFIX_MINIPIX}/bin"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to copy \`%s' into \`%s'." "${_pname}" "${PREFIX_MINIPIX}/bin";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
b12c48 |
for _fname in \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libc.so libcurl.so.4 libcrypto.so.46 libexpat.so.1 libgmp.so.10 \
|
|
Lucio Andrés Illanes Albornoz |
d9b173 |
libgnutls.so.30 libhogweed.so.6 libidn2.so.0 liblzma.so.5 \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libmagic.so.1 libmetalink.so.3 libncurses.so.6 libncursesw.so.6 \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libnettle.so.8 libpcre.so.1 libpcre2-8.so.0 libperk.so.0 \
|
|
Lucio Andrés Illanes Albornoz |
e33903 |
libpsl.so.5 libpsxscl.so libpython2.7.so.1 libreadline.so.8 \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libssl.so.48 libtasn1.so.6 libtinfo.so.6 libtinfo.so \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libtinfow.so.6 libu16ports.so.0 libunistring.so.2 libuuid.so.1 \
|
|
Lucio Andrés Illanes Albornoz |
ee41fc |
libz.so.1; do
|
|
Lucio Andrés Illanes Albornoz |
a24c69 |
if [ ! -e "${PREFIX_NATIVE}/lib/${_fname}" ]; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: shared object \`%s' non-existent on copy." "${PREFIX_NATIVE}/lib/${_fname}";
|
|
Lucio Andrés Illanes Albornoz |
a24c69 |
elif rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop cp_follow "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to copy shared object \`%s' into \`%s'." "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
422a65 |
for _dname in lib/python2.7 share/gdb; do
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ -d "${PREFIX}/minipix_dist/${_dname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! tar -C "${PREFIX}/minipix_dist" -cpf - "${_dname}" | tar -C "${PREFIX_MINIPIX}" -xpf -; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to tar-copy \`%s' into \`%s'." "${PREFIX}/minipix_dist/${_dname}" "${PREFIX_MINIPIX}";
|
|
Lucio Andrés Illanes Albornoz |
97a260 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
422a65 |
done;
|
|
Lucio Andrés Illanes Albornoz |
126198 |
for _pname in etc/ca-certificates.conf etc/ssl/certs/ca-certificates.crt share/ca-certificates; do
|
|
Lucio Andrés Illanes Albornoz |
126198 |
if [ -e "${PREFIX}/minipix_dist/${_pname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
126198 |
&& ! tar -C "${PREFIX}/minipix_dist" -cpf - "${_pname}" | tar -C "${PREFIX_MINIPIX}" -xpf -; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to tar-copy \`%s' into \`%s'." "${PREFIX}/minipix_dist/${_dname}" "${PREFIX_MINIPIX}";
|
|
Lucio Andrés Illanes Albornoz |
126198 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
126198 |
done;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
for _fname in nano vim; do
|
|
Lucio Andrés Illanes Albornoz |
97a260 |
if [ -e "${PREFIX}/minipix_dist/share/${_fname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
0d1c4f |
&& rtl_is_newer "${PREFIX}/minipix_dist/share/${_fname}" "${PREFIX_MINIPIX}/share/${_fname}"\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop cp_follow "${PREFIX}/minipix_dist/share/${_fname}" "${PREFIX_MINIPIX}/share"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to copy \`%s' into \`%s'." "${PREFIX}/minipix_dist/share/${_fname}" "${PREFIX_MINIPIX}/share";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ ! -L "${PREFIX_MINIPIX}/share/nanorc" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop ln_symbolic "nano/nanorc.nanorc" "${PREFIX_MINIPIX}/share/nanorc"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to create symbolic link from \`%s' to \`%s'." "nano/nanorc.nanorc" "${PREFIX_MINIPIX}/share/nanorc";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ ! -L "${PREFIX_MINIPIX}/share/vimrc" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop ln_symbolic "vim/vim74/vimrc_example.vim" "${PREFIX_MINIPIX}/share/vimrc"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to create symbolic link from \`%s' to \`%s'." "vim/vim74/vimrc_example.vim" "${PREFIX_MINIPIX}/share/vimrc";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
for _fname in putty putty-256color screen screen-256color xterm xterm-256color; do
|
|
Lucio Andrés Illanes Albornoz |
e402f6 |
_dname="share/terminfo/${_fname%${_fname#[a-zA-Z]}}";
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ ! -e "${PREFIX_MINIPIX}/${_dname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop mkdir "${PREFIX_MINIPIX}/${_dname}"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to create directory \`%s'." "${PREFIX_MINIPIX}/${_dname}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
97a260 |
if [ -e "${PREFIX_NATIVE}/${_dname}/${_fname}" ]\
|
|
Lucio Andrés Illanes Albornoz |
0d1c4f |
&& rtl_is_newer "${PREFIX_NATIVE}/${_dname}/${_fname}" "${PREFIX_MINIPIX}/${_dname}/${_fname}"\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop cp_follow "${PREFIX_NATIVE}/${_dname}/${_fname}" "${PREFIX_MINIPIX}/${_dname}"; then
|
|
Lucio Andrés Illanes Albornoz |
071d62 |
rtl_log_msg fatalexit "Error: failed to copy \`%s' into \`%s'." "${PREFIX_NATIVE}/${_dname}/${_fname}" "${PREFIX_MINIPIX}/${_dname}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
};
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
# vim:filetype=sh
|