File:  [TIS-4000 Rel T60] / scripts / Make_t60distribution
Revision 1.26: download - view: text, annotated - select for diffs
Mon Apr 1 19:19:11 2002 UTC (15 years, 8 months ago) by tis4000
Branches: MAIN
CVS tags: HEAD, Duluth_baseline
Add vxWorks directories to the distribution. - ncd

#!/bin/sh
#
#  This script will create or update a t60 distribution 
#  directory from a project jaz disk. 
#
alphi=x
apple=x
applix=x
begin=x
driver=x
end=""
iocname=x
install=x
installdir=x
instdrv=x
odss=x
optag=x
oracle=x
pager=x
slm=x
snl=x
status=x
strp=x
tag=x
tagname=x
targetIOC=x
udb=x
upgrade=x
vx162042rci=x
vx162042rtu=x
vx162042sys2000=x
vx162532rtu=x
vx162532rci=x
vx167ioc=x
wca=x
# 
echo "Is this a new distribution or an update?  "
until [ "$status" = new ] || [ "$status" = update ]
do
  echo "Enter new or update  "
  read status
done
echo
echo "Please enter the name of the distribution: "
read dist
echo
echo "Please enter release disk mountpoint (without leading '/'): "
read relDisk
echo
installdir=/$relDisk/$dist"_distribution"

until [ "$begin" = n ] || [ "$begin" = y ]
do
  echo "This script will prepare the distribution structure for the $dist release"
  echo "in the $installdir directory. "
  echo "Continue? y/n:   "
  read begin
done

if [ $begin = y -o $begin = Y ]
then
  if [ $status = new ]
  then
    echo
    echo "Ready to install......."
    echo "Please answer the following questions:"

    until [ "$targetIOC" = X486 ] || [ "$targetIOC" = M30 ]
    do
      echo
      echo "Which IOC type is this (X486 or M30)?   "
      read targetIOC
      echo targetIOC $targetIOC >> updateinfo
    done

    if [ "$targetIOC" = M30 ]
   then
      echo
      echo "Are you using an MVME162-042 configured as a Remote Communication Interface (RCI)? y/n  "
      read vx162042rci
      echo vx162042rci $vx162042rci >> updateinfo
      echo
      echo "Are you using an MVME162-042 configured as an IOC (RTU)? y/n  "
      read vx162042rtu
      echo vx162042rtu $vx162042rtu >> updateinfo
      echo
      echo "Are you using an MVME162-042 configured as an IOC (RTU) Sys2000? y/n  "
      read vx162042sys2000
      echo vx162042sys2000 $vx162042sys2000 >> updateinfo
      echo
      echo "Are you using an MVME162-532 configured as an IOC (RTU)? y/n  "
      read vx162532rtu
      echo vx162532rtu $vx162532rtu >> updateinfo
      echo
      echo "Are you using an MVME162-532 configured as a Remote Communication Interface (RCI)? y/n  "
      read vx162532rci
      echo vx162532rci $vx162532rci >> updateinfo
      echo
      echo "Are you using an MVME167 IOC? y/n  "
      read vx167ioc
      echo vx167ioc $vx167ioc >> updateinfo
   fi

   until [ "$alphi" = n ] || [ "$alphi" = y ]
   do
     echo
     echo "Is this system using an Alphi ICC830 serial board? y/n:   "
     read alphi
     echo alphi $alphi >> updateinfo
   done
   
   until [ "$secure" = n ] || [ "$secure" = y ]
   do
     echo
     echo "Is this a secure (SSL) installation? y/n:   "
     read secure
     echo secure $secure >> updateinfo
   done

   until [ "$applix" = n ] || [ "$applix" = y ]
   do
     echo
     echo  "Will Applix be installed on this system? y/n:   "
     read applix
     echo applix $applix >> updateinfo
   done

   until [ "$pager" = n ] || [ "$pager" = y ]
   do
     echo
     echo "Will this system use the Pager option? y/n:   "
     read pager
     echo pager $pager >> updateinfo
   done

   until [ "$udb" = n ] || [ "$udb" = y ]
   do
     echo
     echo "Will this system use UDB? y/n:   "
     read udb
     echo udb $udb >> updateinfo 
   done

   until [ "$odss" = n ] || [ "$odss" = y ]
   do
     echo
     echo "Do you wish to install the ODSS option? y/n:   "
     read odss
     echo odss $odss >> updateinfo
   done

   until [ "$slm" = n ] || [ "$slm" = y ]
   do
     echo
     echo "Do you wish to install Security List Maintenance? y/n:   "
     read slm
     echo slm $slm >> updateinfo
   done

   until [ "$oracle" = n ] || [ "$oracle" = y ]
   do
     echo
     echo "Will Oracle be installed on this system? y/n:   "
     read oracle
     echo oracle $oracle >> updateinfo
   done

   until [ "$optag" = n ] || [ "$optag" = y ]
   do
     echo
     echo "Do you wish to install Circuit Breaker Operator Tagging? y/n:   "
     read optag
     echo optag $optag >> updateinfo
   done

   until [ "$wca" = n ] || [ "$wca" = y ]
   do
     echo
     echo "Do you wish to install the Web based CA support? y/n:   "
     read wca
     echo wca $wca >> updateinfo
   done

  
   until [ "$upgrade" = n ] || [ "$upgrade" = y ]
   do
     echo
     echo "Will you be performing upgrades to graphics and database files? y/n:   "
     read upgrade
     echo upgrade $upgrade >> updateinfo
   done

   until [ "$strp" = n ] || [ "$strp" = y ]
   do
     echo
     echo "Do you wish to strip the files in the torTasks2 directory? y/n:   "
     read strp
     echo strp $strp >> updateinfo
   done

   # Create basic structure
   mkdir $installdir
   mkdir $installdir/tis4000
   mkdir $installdir/tis4000/apple
   mkdir $installdir/tis4000/graphics
   mkdir $installdir/tis4000/graphics/adls
   mkdir $installdir/tis4000/operators
   mkdir $installdir/tis4000/operators/logins
   mkdir $installdir/tis4000/udds
   mkdir $installdir/tis4000/tasks
   mkdir $installdir/tis4000/tasks/headers
   mkdir $installdir/tis4000/temp
   mkdir $installdir/tis4000/torTasks2
   mkdir $installdir/tis4000/torTasks2/$targetIOC
   mkdir $installdir/tis4000/documents
   mkdir $installdir/tis4000/documents/help

   echo
   echo "Do you want to create IOC directories on the distribution disk? y/n   "
   read iocdir

   if [ $iocdir = y -o $iocdir = Y ]
   then
     echo "Enter IOC names."
     echo "Press <CR> when finished."
     echo
     until [ "$iocname" = "$end" ]
     do
       echo "Enter IOC name:   \c"
       read iocname
       if [ "$iocname" != "$end" ]
       then
         echo
         echo "Creating directory $iocname" 
         echo
         mkdir $installdir/tis4000/apple/$iocname
         echo iocname $iocname >> updateinfo
       fi
     done
   else
     echo
     echo "Skipping Directory creation for IOCs"
     echo
   fi
 fi

 if [ $status = update ]
 then
   targetIOC="`grep -h "targetIOC" updateinfo | awk '{print $2 }'`"
   vx162042rci="`grep -h "vx162042rci" updateinfo | awk '{print $2 }'`"
   vx162042rtu="`grep -h "vx162042rtu" updateinfo | awk '{print $2 }'`"
   vx162042sys2000="`grep -h "vx162042sys2000" updateinfo | awk '{print $2 }'`"
   vx162532rtu="`grep -h "vx162532rtu" updateinfo | awk '{print $2 }'`" 
   vx162532rci="`grep -h "vx162532rci" updateinfo | awk '{print $2 }'`"
   vx167ioc="`grep -h "vx167ioc" updateinfo | awk '{print $2 }'`"
   alphi="`grep -h "alphi" updateinfo | awk '{print $2 }'`"
   secure="`grep -h "secure" updateinfo | awk '{print $2 }'`"
   applix="`grep -h "applix" updateinfo | awk '{print $2 }'`"
   alarmtalk="`grep -h "alarmtalk" updateinfo | awk '{print $2 }'`"
   pager="`grep -h "pager" updateinfo | awk '{print $2 }'`"
   udb="`grep -h "udb" updateinfo | awk '{print $2 }'`"
   odss="`grep -h "odss" updateinfo | awk '{print $2 }'`"
   slm="`grep -h "slm" updateinfo | awk '{print $2 }'`"
   oracle="`grep -h "oracle" updateinfo | awk '{print $2 }'`"
   optag="`grep -h "optag" updateinfo | awk '{print $2 }'`"
   wca="`grep -h "wca" updateinfo | awk '{print $2 }'`"
   upgrade="`grep -h "upgrade" updateinfo | awk '{print $2 }'`"
   strp="`grep -h "strp" updateinfo | awk '{print $2 }'`"
 fi

 echo
 echo "Installing TIS4000 core executables"
 for filename in `grep -h "HostBaseComponent" tistasksfiles | awk '{ print $1 }'`
 do
   cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks 
 done

 echo
 echo "Installing TIS4000 header files"
 for filename in `grep -h "HostBaseHeader" tistasksfiles | awk '{ print $1 }'`
 do
   cp -pr /$relDisk/t60/share/epicsH/$filename $installdir/tis4000/tasks/headers 
 done

 echo
 echo "Installing Java Utilities"
 for filename in `grep -h "JavaClass" tistasksfiles | awk '{ print $1 }'`
 do
   cp -pr  /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks 
 done

 # Copy standard scripts
 cp -pr /$relDisk/t60/scripts/installTis4000 $installdir
 cp -pr /$relDisk/t60/scripts/create_db $installdir/tis4000/tasks
 cp -pr /$relDisk/t60/scripts/tistasks $installdir/tis4000/tasks
 cp -pr /$relDisk/t60/scripts/rc.tisstart $installdir/tis4000/tasks
 cp -pr /$relDisk/t60/scripts/rc.tisstop $installdir/tis4000/tasks

 if [ $status = new ]
 then
   mkdir $installdir/galaxy
   mkdir $installdir/galaxy/lib
   mkdir $installdir/tis4000/snl
   mkdir $installdir/tis4000/snl/programs
   mkdir $installdir/tis4000/tasks/compilers
   mkdir $installdir/tis4000/tasks/compilers/$targetIOC
 fi

 # Copy galaxy support
 rcp -pr soldev1:/tools/galaxy/galaxycxx/lib/vgalaxy2.vr $installdir/galaxy/lib
 rcp -pr soldev1:/tools/galaxy/galaxycxx/lib/libvgalaxy++-debug.so.3 $installdir/galaxy/lib

 # Copy snl support
 cp -pr /$relDisk/t60/scripts/buildsnl $installdir/tis4000/snl

 # Collect tis4000 headers for cross compiler!!!
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ar $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/as $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cc1 $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cc1plus $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cpp $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/gcc $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ld $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/nm $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ranlib $installdir/tis4000/tasks/compilers/$targetIOC
 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/strip $installdir/tis4000/tasks/compilers/$targetIOC
 
 # Copy codebase runtime library for java support
 rcp -pr soldev1:/disk1/java/cbjni/source/libcb.so $installdir/tis4000/tasks

 if [ $alphi = y -o $alphi = Y ] 
 then
   echo  
   echo "Installing Alphi ICC830 serial board options" 
   for filename in `grep -h "BoardAlphiICC830" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
   done
 else
   echo
   echo "Skipping installation of Alphi ICC830 serial board files."
 fi

 if [ $secure = y -o $secure = Y ] 
 then
   echo
   echo "Installing Secure Base components"
   for filename in `grep -h "HostSecBaseComponent" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks 
   done
   cp -pr /$relDisk/t60/scripts/secScripts/starttis4000 $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/secScripts/stop_TIS $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/secScripts/start_TIS $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/share/src/voipMon/getvoip $installdir/tis4000/tasks
   if [ $status = new ]
   then
     mkdir $installdir/usr
     mkdir $installdir/usr/local
     mkdir $installdir/usr/local/ssl
     mkdir $installdir/usr/local/ssl/certs
   fi
 else
   echo
   echo "Installing Standard Base components"
   for filename in `grep -h "HostStdBaseComponent" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks 
   done
   cp -pr /$relDisk/t60/scripts/stdScripts/starttis4000 $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/stdScripts/stop_TIS $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/stdScripts/start_TIS $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/stdScripts/startJava $installdir/tis4000/tasks
   cp -pr /$relDisk/t60/scripts/stdScripts/stopJava $installdir/tis4000/tasks
 fi
 
 if [ $upgrade = y -o $upgrade = Y ] 
 then
   echo
   echo "Installing TIS4000 Upgrade executables"
   for filename in `grep -h "HostUpgrade" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of upgrade executables"
 fi                                                                        
   
 if [ $applix = y -o $applix = Y ] 
 then
   echo
   echo "Installing Applix files for TIS4000"
   if [ $status = new ]
   then
     mkdir $installdir/tis4000/axhome
     mkdir $installdir/tis4000/axhome/macros
   fi
   for filename in `grep -h "HostApplix" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of Applix files."
 fi

 if [ $pager = y -o $pager = Y ] 
 then
   echo
   echo "Installing Pager option"
   for filename in `grep -h "HostPager" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of Pager files."
 fi

 if [ $udb = y -o $udb = Y ] 
 then
   echo
   echo "Installing UDB"
   if [ $status = new ] 
   then
     mkdir $installdir/tis4000/udb
     mkdir $installdir/tis4000/udb/programs
   fi
   cp -pr /$relDisk/t60/scripts/buildudb $installdir/tis4000/udb
   cp -pr /$relDisk/t60/share/src/udbcode/generic/udbStubs.c $installdir/tis4000/udb/programs
   for filename in `grep -h "IOCUDB" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
   done
 else
   echo
   echo "Skipping installation of UDB files."
 fi

 if [ $odss = y -o $odss = Y ] 
 then
   echo  
   echo "Installing ODSS options" 
   for filename in `grep -h "HostOdss" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of ODSS files."
 fi

 if [ $slm = y -o $slm = Y ] 
 then
   echo
   echo "Installing Security List Maintenance"
   for filename in `grep -h "HostSlm" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of SLM files."
 fi

 if [ $oracle = y -o $oracle = Y ]
 then
   echo
   echo "Installing Oracle trending files"
   for filename in `grep -h "HostOracle" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
   cp -p /$relDisk/t60/scripts/dotrenddata $installdir/tis4000/tasks
   cp -p /$relDisk/t60/java/classes/oracleSnapEditClient.jar $installdir/tis4000/tasks
   cp -p /$relDisk/t60/java/projects/hathaway/trend/snapedit.readme  $installdir/tis4000/tasks
 else 
   echo
   echo "Installing xBase trending files."
   for filename in `grep -h "HostNotOracle" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
   done
 fi

 if [ $optag = y -o $optag = Y ] 
 then
   echo
   echo "Installing Circuit Breaker Operator Tagging Files"
   for filename in `grep -h "JavaOptag" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of Circuit Breaker Operator Tagging files."
 fi

 if [ $wca = y -o $wca = Y ] 
 then
   echo
   echo "Installing Web-based CA"
   for filename in `grep -h "JavaWca" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks
   done
 else
   echo
   echo "Skipping installation of Web-based CA files."
 fi

#
#################################################################################
#

 echo
 echo "Beginning installation of vxWorks components"
 echo
 echo
 echo "Installing IOC Core Executable files"
 for filename in `grep -h "IOCBaseComponent" tistasksfiles | awk '{ print $1 }'`
 do
   cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
 done

 if [ $status = new ] && [ $targetIOC = X486 ]
 then
   mkdir $installdir/tis4000/apple/RelDisks
   mkdir $installdir/tis4000/apple/RelDisks/Disk1
   mkdir $installdir/tis4000/apple/RelDisks/Disk2
   mkdir $installdir/tis4000/apple/RelDisks/dpgDisk1
   mkdir $installdir/tis4000/apple/RelDisks/dpgDisk2
   mkdir $installdir/tis4000/apple/RelDisks/dpgDisk3
 fi
 
 if [ $secure = y -o $secure = Y ] 
 then
   echo
   echo "Installing IOC Secure components"
   for filename in `grep -h "IOCSecBaseComponent" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC 
   done

   #     Copy release disk components to apple/RelDisks
   if [ $targetIOC = X486 ]
   then
     #     Copy ssl.o, lynks library to torTasks2 directory
     rcp -p soldev1:/tools/SSLeay/TornadoX86/ssl.o $installdir/tis4000/torTasks2/$targetIOC
     rcp -p soldev1:/tools/SSLeay/TornadoX86/lynksees.o $installdir/tis4000/torTasks2/$targetIOC
   fi
 else
   for filename in `grep -h "IOCStdBaseComponent" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC 
   done
 fi

 if [ $targetIOC = X486 ]
 then
   for filename in `grep -h "IOCBootComponent" tistasksfiles | awk '{ print $1 }'`
   do
     cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/apple/RelDisks/dpgDisk1 
   done 
   echo
   echo "Installing vxWorks for X486"
   # Tornado2	X486
   rcp -p soldev1:/tools/Tornado2_X86/vxWorks $installdir/tis4000/torTasks2/$targetIOC
   rcp -p soldev1:/tools/Tornado2_X86/vxWorks.sym $installdir/tis4000/torTasks2/$targetIOC
   rcp -p soldev1:/tools/Tornado2_X86/bootrom.sys $installdir/tis4000/apple/RelDisks/dpgDisk1
   rcp -p soldev1:/tools/Tornado2_X86/vxsys.com $installdir/tis4000/apple/RelDisks/dpgDisk1
   rcp -p soldev1:/tools/Tornado2_X86/vxWorks $installdir/tis4000/apple/RelDisks/dpgDisk2
   rcp -p soldev1:/tools/Tornado2_X86/vxWorks.sym $installdir/tis4000/apple/RelDisks/dpgDisk3
   rcp -pr soldev1:/tools/Tornado2_X86/headers $installdir/tis4000/tasks
 fi 

if [ $targetIOC = M30 ]
 then
     # Copy vxWorks Tools
     rcp -pr soldev1:/tools/Tornado2_68k/headers $installdir/tis4000/tasks

     if [ $vx162042rci = y -o $vx162042rci = Y ] 
     then
        echo  
        echo "Installing MVME162-042 RCI" 
      	rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rci $installdir/tis4000/tasks
     else
  	echo
   	echo "Skipping installation MVME162-042 RCI."
     fi

     if [ $vx162042rtu = y -o $vx162042rtu = Y ] 
     then
  	echo  
  	echo "Installing MVME162-042 RTU" 
    	rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rtu $installdir/tis4000/tasks
     else
        echo
        echo "Skipping installation MVME162-042 RTU."
     fi
   
     if [ $vx162042sys2000 = y -o $vx162042sys2000 = Y ] 
     then
  	echo  
  	echo "Installing MVME162-042 RTU Sys2000" 
     	rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rtu-sys2000 $installdir/tis4000/tasks
     else
        echo
        echo "Skipping installation MVME162-042 RTU Sys2000."
     fi
 if [ $vx162532rtu = y -o $vx162532rtu = Y ] 
     then
  	echo  
  	echo "Installing MVME162-532 RTU" 
    	rcp -pr soldev1:/tools/Tornado2_68k/vx162-532rtu $installdir/tis4000/tasks
     else
       echo
       echo "Skipping installation MVME162-532 RTU."
     fi

     if [ $vx162532rci = y -o $vx162532rci = Y ] 
     then
  	echo  
  	echo "Installing MVME162-532 RCI" 
    	rcp -pr soldev1:/tools/Tornado2_68k/vx162-532rci $installdir/tis4000/tasks
     else
       echo
       echo "Skipping installation MVME162-532 RCI."
     fi

     if [ $vx167ioc = y -o $vx167ioc = Y ] 
     then
  	echo  
  	echo "Installing MVME167 IOC" 
    	rcp -pr soldev1:/tools/Tornado2_68k/vx167-ioc $installdir/tis4000/tasks
     else
       echo
       echo "Skipping installation MVME167 IOC."
     fi
  fi

 echo
 echo "Beginning installation of drivers"
 if [ $status = new ]
 then
   until [ "$instdrv" = n ] || [ "$instdrv" = y ]
   do
     echo
     echo "Do you want to install drivers now? y/n   "
     read instdrv
     echo instdrv $instdrv >> updateinfo
   done
 else
   if [ $status = update ]
   then
     until [ "$instdrv" = n ] || [ "$instdrv" = y ]
     do
       echo
       echo "Do you want to add drivers to the present distribution? y/n   "
       read instdrv
     done
   fi
 fi
 
 if [ $instdrv = y ]
 then
   echo
   echo "Your choices are:"
   cat driverfile
   echo
   echo "Enter driver name as shown above."
   echo "Make sure to captilize the first letter."
   echo "Enter <CR> when finished."
   echo
   until [ "$driver" = "$end" ]
   do
     echo "Driver name:   "
     read driver
     if [ "$driver" != "$end" ]
     then
       echo "Installing $driver ...."
       for filename in `grep -h "IOCDriver$driver" tistasksfiles | awk '{ print $1 }'`
       do 
         cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC 
       done
       echo driver $driver >> updateinfo
     fi
   done
 else
   echo
   echo "Skipping installation of new drivers"
 fi 

 if [ $status = update ]
 then
   instdrv="`grep -h "instdrv" updateinfo | awk '{print $2 }'`"
   if [ $instdrv = y ]
   then
     for driver in `cat driverfile`
     do
       for drivername in `grep -h "$driver" updateinfo | awk '{ print $2 }'`
       do 
         echo
         echo "Updating $drivername ...."
         echo 
         for filename in `grep -h "IOCDriver$driver" tistasksfiles | awk '{ print $1 }'`
         do
           cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC 
         done
       done
     done
   fi
 fi

 if [ "$strp" = y ] || [ "$strp" = Y ] 
 then
   echo  
   echo "Stripping files in torTasks directory"
   if [ $status = update ]
   then
     'rm' -r $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
   fi
   mkdir $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
   cp -p $installdir/tis4000/torTasks2/$targetIOC/* $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
   /tools/gnuXCompilers/$targetIOC/strip --strip-debug $installdir/tis4000/torTasks2/$targetIOC/strippedFiles/*
   echo
 else
   echo
   echo "Skipping stripping of torTasks directory."
 fi

 #
 #########################################################################
 #

 echo 
 echo "Installing Standard Graphics"
 cp -p /$relDisk/t60/graphic_adls/*.adl $installdir/tis4000/graphics/adls

 echo
 echo "Installing Help Documents"
 cp -p /$relDisk/t60/documents/helpDefs.def $installdir/tis4000/documents
 cp -p /$relDisk/t60/documents/help/*.pdf $installdir/tis4000/documents/help

 echo
 echo "Establishing TIS4000 ownership on tasks directory"
 chown -R tis4000 $installdir/tis4000 
 echo
 echo "******* Installation Complete *******"
 echo

 echo "Do you want to tag the release? "
 read tag
 if [ $tag = y ]
 then
   echo
   echo "What is the tag name? "
   read tagname
   echo
   cd /$relDisk/t60
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname share
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname Tornado2
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname java
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname graphic_adls
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname documents
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname scripts
   cd Unix
   cvs -d /$relDisk/src/$relDisk"_master" tag $tagname sun2.4
   cd /$relDisk
   echo
 fi
 echo
 echo "*******Exitting Script*******"
else
  echo
  echo "*******Exitting Script*******"
fi



 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>