#!/bin/sh 
#==============================================================     
#
#  Abs:  Script to build pvlist for Genesys PS databases
#
#  Name: report
#
#  Rem:  It is important to run this script prior to
#        loading it into the ioc, as dbReadTest
#        and dbreport can find errors not reported
#        during the build.
#
#  Side: This report has to be executed from a
#        Spear server, such a beldar, as Spear 
#        has fixed the dbReadTest function in 
#        epics base. 
#
#  Auth: 05-Jul-2018, K. Luchini      (LUCHINI)
#--------------------------------------------------------------
#  Mod:
#       dd-mmm-yyyy, First Lastname   (USERNAME):
#         comment
#
#==============================================================
#
EPICS_APP_WWW=/afs/slac/www/grp/lcls/controls/global/sw/epics/slaconly/dblist/Genesys

cd ../..
rm -f $EPICS_APP_WWW/geneSys_psu-01.pvlist

dbReadTest dbd/geneSys.dbd   db/geneSys_psu-01.db

# Generate pv list report
dbreport -f db/geneSys_psu-01.db OUT.INP.35 DESC.29 | sort >  $EPICS_APP_WWW/geneSys_psu-01.pvList

# End of script


