diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-06 01:22:34 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-06 01:23:34 +0100 |
commit | 5a325f329863eb32c04e6133258cf865f42b9baa (patch) | |
tree | f5e6105f6acffbdad9a38dcf7fc0e366a0644576 /subr | |
parent | 05e6185f7740f3acef556ba39cff95139bd7130d (diff) | |
download | midipix_build-5a325f329863eb32c04e6133258cf865f42b9baa.tar.bz2 midipix_build-5a325f329863eb32c04e6133258cf865f42b9baa.tar.xz |
build.sh, subr/post_sha256sums.subr: compile ${PREFIX}/SHA256SUMS over eXecutable files in ${PREFIX_NATIVE}/{bin,lib} (via midipix.)
Diffstat (limited to 'subr')
-rw-r--r-- | subr/post_sha256sums.subr | 16 |
1 files changed, 16 insertions, 0 deletions
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 |