lix-os-utilities/makechecks.sh

7 lines
489 B
Bash
Executable File

type="$1"
version="$2"
curl -o src.$type -L "$(eval "echo \"$(cat "urls")\"" | awk "/\tarc\t/" | cut -f4)"
printf %s\\t%s\\t%s\\t%s\\t%s\\n $version $type "arc" "$(wc -c src.$type | cut -d' ' -f1)" "$(sha512sum src.$type | cut -d' ' -f1)" >> checks
curl -o src.$type.sig -L "$(eval "echo \"$(cat "urls")\"" | awk "/\tsig\t/" | cut -f4)"
printf %s\\t%s\\t%s\\t%s\\t%s\\n $version $type "sig" "$(wc -c src.$type.sig | cut -d' ' -f1)" "$(sha512sum src.$type.sig | cut -d' ' -f1)" >> checks