#!/bin/sh

DIR=`pwd`
ODIR=$1

grep -v -e '^#' $ODIR/metadata.lst | (while read url cert; do
   cfile=""
   if [ "x$cert" != "x" ]; then
      cfile=$DIR/certs/$cert
   fi
   $DIR/scripts/pull-and-verify.sh $url $ODIR $cfile
done)