|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
#
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
# set +o errexit -o noglob is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6c6c71 |
pkg_invariants_digest_all() {
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
local _fname="";
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
if rtl_lmatch "${ARG_DIST}" "tbz2" "," \
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
|| rtl_lmatch "${ARG_DIST}" "tgz" "," \
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
|| rtl_lmatch "${ARG_DIST}" "txz" ","; then
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
rtl_log_msg info "Compiling SHA256 sums...";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
if [ -e "${PREFIX}/SHA256SUMS" ]; then
|
|
Lucio Andrés Illanes Albornoz |
c6d6e0 |
rtl_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
(cd "${PREFIX}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
for _fname in $(find "${PREFIX_NATIVE#${PREFIX}/}" -type f -perm /a=x \
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
\( -path "${PREFIX_NATIVE#${PREFIX}/}/bin/*" -or \
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
-path "${PREFIX_NATIVE#${PREFIX}/}/lib/*" \)); do
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
sha256sum "${_fname}";
|
|
Lucio Andrés Illanes Albornoz |
0eaee4 |
done > "${PREFIX}/SHA256SUMS");
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6c6c71 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a325f |
# vim:filetype=sh
|