pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

verify-external-resources (513B)


      1 #!/bin/sh
      2 if test -n "$pthbs_xtrace"; then
      3 	set -x
      4 	if test -n "$BB_ASH_VERSION"; then PS4="+${0##*/}"':${FUNCNAME}:${LINENO} '; fi
      5 fi
      6 if test -z "$pthbs_source"; then
      7     printf '%s\n' >&2 "$0: fatal: pthbs_source env var undefined or empty"
      8     exit 100
      9 fi
     10 if test -z "$pthbs_indexdir"; then
     11     printf '%s\n' >&2 "$0: fatal: pthbs_indexdir env var undefined or empty"
     12     exit 100
     13 fi
     14 
     15 find ./variants/*/ -type f -name '[^.]*' -exec sha256sum '{}' + | awk -f "$pthbs_source/util/_verify-external-resources.awk"