diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-27 07:56:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-27 07:56:18 +0000 |
commit | c1e93d88eaceaa1b4d9e52c386186e84d8efb219 (patch) | |
tree | a2e9446d8cdb91b321eb4f29381baf00c9f76c51 | |
parent | 13b8a5b2fcdff57e7953cc35703221ba8d1bc040 (diff) | |
download | alpine-iso-c1e93d88eaceaa1b4d9e52c386186e84d8efb219.tar.bz2 alpine-iso-c1e93d88eaceaa1b4d9e52c386186e84d8efb219.tar.xz |
mklatest: generate sha512 sum
-rw-r--r-- | mklatest.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mklatest.sh b/mklatest.sh index 0eec9a1..8043ea2 100644 --- a/mklatest.sh +++ b/mklatest.sh @@ -17,20 +17,21 @@ releasedir="$branch/releases/$arch" do_stat() { for f in *-$current-$arch.iso; do - for hash in sha1 sha256; do + for hash in sha1 sha256 sha512; do if ! [ -f "$f.$hash" ]; then ${hash}sum $f > $f.$hash fi done sha1=$(awk '{print $1}' $f.sha1) sha256=$(awk '{print $1}' $f.sha256) - stat -c "%y $releasedir/%n %s $sha1 $sha256" $f + sha512=$(awk '{print $1}' $f.sha512) + stat -c "%y $releasedir/%n %s $sha1 $sha256 $sha512" $f done } do_yaml() { echo "---" - do_stat | while read date time filepath size sha1 sha256; do + do_stat | while read date time filepath size sha1 sha256 sha512; do file=${filepath##*/} flavor=${iso%-${current}-${arch}.iso} echo "-" @@ -45,6 +46,7 @@ do_yaml() { echo " size: $size" echo " sha1: $sha1" echo " sha256: $sha256" + echo " sha512: $sha512" done } |