#!/bin/sh 

#
#
# Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved
#
# "@(#)versions.sh	3.4 00/11/27 Sun Microsystems"
#
BASE_DIR=/opt/SUNWicg/SunScreen
BIN_DIR=$BASE_DIR/bin
SSADM_DIR=$BASE_DIR/ssadm
ADM_DIR=$BASE_DIR/admin
LIB_DIR=$BASE_DIR/lib
PATH=$PATH:/usr/bin

echo screen driver, 32-bit
/usr/ccs/bin/what /kernel/drv/screen | grep '\.[cC]'
echo " "

echo screen driver, 64-bit
/usr/ccs/bin/what /kernel/drv/sparcv9/screen | grep '\.[cC]'
echo " "

echo spf
/usr/ccs/bin/what /kernel/strmod/spf | grep '\.[cC]'
echo " "

echo efs
/usr/ccs/bin/what /kernel/strmod/efs | grep '\.[cC]'
echo " "

cd $BIN_DIR
for file in `ls` ;	do				
  /usr/ccs/bin/what $file  | grep -v '\.[.h]' 	
  echo " "
done

cd $SSADM_DIR
for file in `ls` ;	do				
  /usr/ccs/bin/what $file | grep '\.[cC]'	
  echo " "
done

cd $LIB_DIR
for file in `ls` ;	do				
  /usr/ccs/bin/what $file | grep -v '\.[.h]' 	
  echo " "
done

echo GUI
cd $ADM_DIR/htdocs
# fix for BugID: 4373966
for file in `find . -print` ; do
  if [ -r $file ]
     then /usr/ccs/bin/what $file
     echo " "
  fi
done

echo proxies
## Fix for BugID: 4373966
cd $BASE_DIR/proxies
for file in `ls` ; do
    /usr/ccs/bin/what $file
    echo " "
done

echo communication
# Fix for BugID: 4373966
cd $ADM_DIR/com/sun/sunscreen/internal/ssadm
for file in `ls` ; do
    /usr/ccs/bin/what $file
    echo " " 
done

echo proxies
for file in `find $BASE_DIR/proxies -name '*.class' -print` ; do
  /usr/ccs/bin/what $file
  echo " "
done

echo screen_skip
/usr/ccs/bin/what /usr/kernel/drv/screen_skip |  grep '\.[cC]'
echo " "

cd /usr/kernel/misc/
for file in `ls screen*` ;	do				
  /usr/ccs/bin/what $file | grep '\.[cC]'	
  echo " "
done


cd /usr/kernel/misc/sparcv9
for file in `ls screen*` ;	do				
  /usr/ccs/bin/what $file | grep '\.[cC]'	
  echo " "
done

