diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2020-03-13 17:35:47 +0300 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2020-03-13 17:35:47 +0300 |
commit | 7181a661c5db59a40ba6b3ad0a3d8a571ad10877 (patch) | |
tree | 283ae28954c23b764ae66d08b090965c9ced8aa2 /pkg/shasum.mak | |
parent | baf92303987582d226fb90175f51c4cf8457cb96 (diff) | |
download | unit-7181a661c5db59a40ba6b3ad0a3d8a571ad10877.tar.gz unit-7181a661c5db59a40ba6b3ad0a3d8a571ad10877.tar.bz2 |
Added a target to export docker images as tarballs
Diffstat (limited to 'pkg/shasum.mak')
-rw-r--r-- | pkg/shasum.mak | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/shasum.mak b/pkg/shasum.mak new file mode 100644 index 00000000..39ec09e6 --- /dev/null +++ b/pkg/shasum.mak @@ -0,0 +1,9 @@ +ifeq ($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),) +SHA512SUM = sha512sum +else ifeq ($(shell shasum --version >/dev/null 2>&1 || echo FAIL),) +SHA512SUM = shasum -a 512 +else ifeq ($(shell openssl version >/dev/null 2>&1 || echo FAIL),) +SHA512SUM = openssl sha512 +else +SHA512SUM = $(error no SHA-512 tool found!) +endif |