From e9b64cef93964d4e390d2cc6f3d92752a60fa551 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 2 Dec 2014 07:45:40 +0000 Subject: mklatest: include .tar.gz releases fixes also the creation of empty \*- file when release file is missing --- mklatest.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mklatest.sh b/mklatest.sh index 9f7e86e..fc6a067 100644 --- a/mklatest.sh +++ b/mklatest.sh @@ -13,7 +13,10 @@ fi releasedir="$branch/releases/$arch" do_stat() { - for f in *-$current-$arch.iso; do + for f in *-$current-$arch.iso *-$current-$arch.*tar.gz; do + if ! [ -e "$f" ]; then + continue + fi for hash in sha1 sha256 sha512; do if ! [ -f "$f.$hash" ]; then ${hash}sum $f > $f.$hash @@ -30,7 +33,7 @@ do_yaml() { echo "---" do_stat | while read date time filepath size sha1 sha256 sha512; do file=${filepath##*/} - flavor=${iso%-${current}-${arch}.iso} + flavor=${file%-${current}-${arch}.*} echo "-" echo " branch: $branch" echo " arch: $arch" -- cgit v1.2.3