Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

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) 5a325f
	log_msg info "Compiling SHA256 sums...";
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	if [ -e "${PREFIX}/SHA256SUMS" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
		build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3af912
	for __ in $(find "${PREFIX_NATIVE}" -type f -perm /a=x -name bin/\* -name lib/\*); do
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
		sha256sum "${__}";
Lucio Andrés Illanes Albornoz (arab, vxp) 5a325f
	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