diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-01-13 14:49:36 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-01-13 14:49:36 +0000 |
commit | a24c690462f18f0850cffb45023f09a967f73449 (patch) | |
tree | 837b81c78ee63bbdae3f993310324d4893ed92fd /dist | |
parent | d9b173c144d4e2e18bca4e4d8447a617120f9787 (diff) | |
download | midipix_build-a24c690462f18f0850cffb45023f09a967f73449.tar.bz2 midipix_build-a24c690462f18f0850cffb45023f09a967f73449.tar.xz |
dist/dist_minipix.dist: fail non-silently given non-existent shared object in ${PREFIX_NATIVE}/lib.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/dist_minipix.dist | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/dist_minipix.dist b/dist/dist_minipix.dist index 85775114..17d96271 100644 --- a/dist/dist_minipix.dist +++ b/dist/dist_minipix.dist @@ -34,8 +34,10 @@ pkg_dist_minipix_all() { libssl.so.48 libtasn1.so.6 libtinfo.so.6 libtinfo.so \ libtinfow.so.6 libu16ports.so.0 libunistring.so.2 libuuid.so.1 \ libz.so.1; do - if [ -e "${PREFIX_NATIVE}/lib/${_fname}" ]\ - && rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ + if [ ! -e "${PREFIX_NATIVE}/lib/${_fname}" ]; then + rtl_log_msg fatal "Error: shared object \`%s' non-existent on copy." "${PREFIX_NATIVE}/lib/${_fname}"; + return 1; + elif rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ && ! rtl_fileop cp_follow "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin"; then return 1; fi; |