diff options
author | Aaron Ball <nullspoon@oper.io> | 2018-04-09 14:08:29 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2018-04-09 14:08:29 -0600 |
commit | 0b40858952e7785263988680c346b5f664c7ab0b (patch) | |
tree | e684cf05b744079b19328a766bb466bce9da498e /pkgself.sh | |
parent | 86fc3cc21a70513b60c24516caf423dc149319d4 (diff) | |
download | pkgself-0b40858952e7785263988680c346b5f664c7ab0b.tar.gz pkgself-0b40858952e7785263988680c346b5f664c7ab0b.tar.xz |
Auto calculate checksums for installer
This automatically calculates sha512 and md5 checksums for the installer
when built.
Diffstat (limited to 'pkgself.sh')
-rwxr-xr-x | pkgself.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -168,6 +168,11 @@ main() { cat "${tmp}/run.sh.${COMPRESSEXT}" >> "${output}" cat "${PKG}.tar.${COMPRESSEXT}" >> "${output}" + printf 'Calculating installer checksums\n' + cd $(dirname ${output}) + sha512sum $(basename ${output}) > "${output}.sha512" + md5sum $(basename ${output}) > "${output}.md5" + # Cleanup rm -rf ${tmp} } |