Blame subr/post_sha256sums.subr

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) 5a325f
post_sha256sums() {
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	local __;
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
	if [ "${BUILD_SCRIPT_RC:-0}" -eq 0 ]\
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
	&& [ "${ARG_TARBALL:-0}" -eq 1 ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
		log_msg info "Compiling SHA256 sums...";
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
		if [ -e "${PREFIX}/SHA256SUMS" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
			build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 300736
		(cd "${PREFIX}";
Lucio Andrés Illanes Albornoz (arab, vxp) 300736
		for __ in $(find "${PREFIX_NATIVE#${PREFIX}/}" -type f -perm /a=x	\
Lucio Andrés Illanes Albornoz (arab, vxp) 300736
				\( -path "${PREFIX_NATIVE#${PREFIX}/}/bin/*" -or	\
Lucio Andrés Illanes Albornoz (arab, vxp) 300736
				   -path "${PREFIX_NATIVE#${PREFIX}/}/lib/*" \)); do
Lucio Andrés Illanes Albornoz (arab, vxp) 75cf53
			sha256sum "${__}";
Lucio Andrés Illanes Albornoz (arab, vxp) 300736
		done > "${PREFIX}/SHA256SUMS");
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	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