aboutsummaryrefslogtreecommitdiffstats
path: root/util/gen-checksums
diff options
context:
space:
mode:
Diffstat (limited to 'util/gen-checksums')
-rwxr-xr-xutil/gen-checksums13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/gen-checksums b/util/gen-checksums
index bb1f981..2d404a0 100755
--- a/util/gen-checksums
+++ b/util/gen-checksums
@@ -4,7 +4,7 @@
set -e
if test ! $# = 2 || test -t 0 || test -t 1; then
- printf 'usage: %s tarball git-dir < version-info-file > checksum-listing\n' "$0" >&2
+ printf 'usage: %s tarball git-dir < tarball-url-list > checksum-listing\n' "$0" >&2
fi
tarball="$1"
@@ -15,9 +15,12 @@ utildir="$(dirname -- "$0")"
"${utildir}"/tmpmount /var/empty "${utildir}"/validate-tarball "${tarball}" "${gitdir}" /var/empty
-grep '^Tarball: ' | cut -d ' ' -f 2 | grep -v '^https://maandree.se/static/' | (
+get_checksums () {
"${utildir}"/get-checksums "${tarball}"
- while read -r url; do
+ while read -r url; do
"${utildir}"/tmpmount /var/empty "${utildir}"/get-and-check "${url}" "${gitdir}" /var/empty
- done
-) | "${utildir}"/order-checksums
+ done
+}
+
+checksums="$(get_checksums)"
+printf '%s\n' "$checksums" | "${utildir}"/order-checksums