#!/bin/csh
#
# HISTORY:
#  5-Nov-93, S. Freeland, Written
# 10-Oct-95, J. Lemen, Changed soft to idl in find statement
# 22-Feb-97, J. Lemen, Changed source directory in find statement
#
set in=$1
set testpro=`echo $in | grep .pro`
if ("$testpro" == "") set in = $in".pro"

find /ys/*/idl/atest -name $in -exec ls -l {} \;
set found=`find /ys/*/idl/atest -name $in -print`

if ("$found" != "") then
   if ($#argv == "2") then
      foreach fi ($found)
         echo dxdiff $fi $in
         dxdiff $fi $in
      end
   else
      foreach fi ($found)
         echo diff $fi $in
         diff $fi $in
      end
   endif
else
      echo file does not exist in atest
endif 
exit
