#!/bin/sh
#*******************************************************************************
#             PACOR II SOFTWARE
#       Property of the U.S. Government
#            NASA/GSFC/Code 560
#*******************************************************************************
#PURPOSE:  Loads the triggers into the PICS database
#
#INVOCATION METHOD:  LoadTriggers userid/password
#
# EXTERNAL VARIABLES:
# Source               Name               Type   Use  Description
# ----------------------------------------------------------------------------
# acedps_db.create     DPS_DBA_HOME       char    I   location of db create scripts
#
#
#DEVELOPMENT HISTORY:
#
#    Author     Change-ID  Release    Date        Description of Change
# ------------  ---------  -------  --------  -----------------------------
# J. Whelan        N/A     R2.1/B4  10/26/94  Initial implementation
# I. Horowitz   ACE0615    ACE R2.0 06/30/96  Removed use of local log file
#
#
#*********************************************************************************
clear
if test $# -ne 1
then
   echo '***********************************************'
   echo 'Error, you must enter an Oracle UserID/Password'
   echo '***********************************************'
   exit
fi

for file in $DPS_DBA_HOME/*.trig
  do
	 echo Loading trigger $file
	 $file $1 
done
echo "****************************************************"
echo "Completed loading DPS triggers"
echo "****************************************************"

