5a325f
build.sh, subr/post_sha256sums.subr: compile ${PREFIX}/SHA256SUMS over eXecutable files in ${PREFIX_NATIVE}/{bin,lib} (via midipix.)
@@ -109,7 +109,7 @@ for BUILD_TARGET_LC in $(subst_tgts invariants ${BUILD_TARGETS_META:-world}); do
|
|
109
109
|
fi;
|
110
110
|
done;
|
111
111
|
if [ "${BUILD_SCRIPT_RC:-0}" -eq 0 ]; then
|
112
|
-
post_copy_etc; post_strip; post_tarballs;
|
112
|
+
post_copy_etc; post_strip; post_tarballs; post_sha256sums;
|
113
113
|
fi;
|
114
114
|
post_build_files;
|
115
115
|
log_msg info "${BUILD_NFINI} finished, ${BUILD_NSKIP} skipped, and ${BUILD_NFAIL} failed builds in ${BUILD_NBUILT} build script(s).";
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
set -o errexit -o noglob are assumed.
|
3
|
+
|
4
|
+
|
5
|
+
post_sha256sums() {
|
6
|
+
local __;
|
7
|
+
log_msg info "Compiling SHA256 sums...";
|
8
|
+
if [ -e "${PREFIX}/SHA256SUMS" ]; then
|
9
|
+
build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last";
|
10
|
+
fi;
|
11
|
+
for __ in $(find "${PREFIX_NATIVE}" -type f -perm +011 -name bin/\* lib/\*); do
|
12
|
+
sha256sum "${__}";
|
13
|
+
done > "${PREFIX}/SHA256SUMS";
|
14
|
+
};
|
15
|
+
|
16
|
+
vim:filetype=sh
|