Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
#
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
# set -o errexit -o noglob are 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 907bd3
	local __="";
Lucio Andrés Illanes Albornoz (arab, vxp) 6c6c71
	if [ -z "${ARG_TARBALL}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 6c6c71
		exit 0;
Lucio Andrés Illanes Albornoz (arab, vxp) 6c6c71
	else
Lucio Andrés Illanes Albornoz (arab, vxp) 6c6c71
		ex_rtl_log_msg info "Compiling SHA256 sums...";
Lucio Andrés Illanes Albornoz (arab, vxp) 6c6c71
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	if [ -e "${PREFIX}/SHA256SUMS" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		ex_rtl_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	(cd "${PREFIX}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	for __ in $(find "${PREFIX_NATIVE#${PREFIX}/}" -type f -perm /a=x	\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
			\( -path "${PREFIX_NATIVE#${PREFIX}/}/bin/*" -or	\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
			   -path "${PREFIX_NATIVE#${PREFIX}/}/lib/*" \)); do
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		sha256sum "${__}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	done > "${PREFIX}/SHA256SUMS");
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