From 5a325f329863eb32c04e6133258cf865f42b9baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 6 Feb 2017 01:22:34 +0100 Subject: build.sh, subr/post_sha256sums.subr: compile ${PREFIX}/SHA256SUMS over eXecutable files in ${PREFIX_NATIVE}/{bin,lib} (via midipix.) --- subr/post_sha256sums.subr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 subr/post_sha256sums.subr (limited to 'subr') diff --git a/subr/post_sha256sums.subr b/subr/post_sha256sums.subr new file mode 100644 index 00000000..befd2d15 --- /dev/null +++ b/subr/post_sha256sums.subr @@ -0,0 +1,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/\* lib/\*); do + sha256sum "${__}"; + done > "${PREFIX}/SHA256SUMS"; +}; + +# vim:filetype=sh -- cgit v1.2.3