#!/bin/sh set -eu TMPDIR=${1} cd ${TMPDIR} || exit 1 while read p; do filename=$(basename $p) if [ ! -f ${filename}.hash ] then wget ${p} guix hash ${filename} > ${filename}.hash fi done <$2