summaryrefslogtreecommitdiffhomepage
path: root/subr/post_sha256sums.subr
blob: b3a11b1abb5939e4c3fb70e08ee11aa253f0cd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# set -o errexit -o noglob are assumed.
#

post_sha256sums() {
	local __;
	log_msg info "Compiling SHA256 sums...";
	if [ -e "${PREFIX}/SHA256SUMS" ]; then
		build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
	fi;
	for __ in $(find "${PREFIX_NATIVE}" -type f -perm +011 -name bin/\* -name lib/\*); do
		sha256sum "${__}";
	done > "${PREFIX}/SHA256SUMS";
};

# vim:filetype=sh