#!/bin/csh 
#
# Name: sendit
#
# Purpose: Runs the CDBS delivery process for a set of ref files.
#          
# Description: After running the canned "deliver_cdbs" script which
#              handles file verification, loading the CDBS database,
#              and generating delivery files for the pipeline, a
#              second script is run to create hard links to the ref files
#              in the delivery pick-up areas for operations, test, and
#              development.  This allows each domain to pick up the files
#              independently, without affecting one another.
#
# Called by:   nothing (stand-alone tool)
#
# History:
# --------
# 09/17/04 52054  MSwam  ported for smalls, no SI dependencies
#
#==========================================================================
#
echo "--"
printf "Starting your delivery process at:" 
date 
#
# Peform the CDBS part of the delivery (verification and db updates)
deliver_cdbs.s
if ($status != 0) then
  printf "FAILURE of deliver_cdbs.\n\n"
  exit 1
endif
#
echo "-- "
printf "...CDBS process done...Making links for delivery pick-up..."
cdbs_make_links
if ($status != 0) then
  printf "FAILURE of cdbs_make_links.\n\n"
  exit 1
endif
#
echo "-- "
printf "...You have successfully finished the delivery process..."  
echo "---- "
printf "Process finished at:" 
date  
echo ".... "
