#!/bin/sh
#
# Name: certify_delivery
#
# Description: Runs the certify task on all files in the delivery
#              (.fits and .lod files).  The certify task verifies that
#              required parameters are present in the files, and that the
#              parameters have expected values, as dictated in the 
#              data/*.tpn files for the particular instrument and reference
#              file type.
#
# Called by:   deliver_cdbs.s
#
# Returns: 0 - certification succeeded, no problems found
#          1 - certification failed
#
#-----------------------------------------------
echo "starting certify_delivery"
date
certify *
if test $? -ne 0
then
  exit 1
else
  exit 0
fi
