summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2018-04-09 14:08:29 -0600
committerAaron Ball <nullspoon@oper.io>2018-04-09 14:08:29 -0600
commit0b40858952e7785263988680c346b5f664c7ab0b (patch)
treee684cf05b744079b19328a766bb466bce9da498e
parent86fc3cc21a70513b60c24516caf423dc149319d4 (diff)
downloadpkgself-0b40858952e7785263988680c346b5f664c7ab0b.tar.gz
pkgself-0b40858952e7785263988680c346b5f664c7ab0b.tar.xz
Auto calculate checksums for installer
This automatically calculates sha512 and md5 checksums for the installer when built.
-rwxr-xr-xpkgself.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgself.sh b/pkgself.sh
index c47a713..3c86823 100755
--- a/pkgself.sh
+++ b/pkgself.sh
@@ -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}
}

Generated by cgit