#! /usr/bin/sh
PDIR=/opt
echo "Processing 32 bit binaries..."
cd $PDIR/SUNWvts/bin
$PDIR/SUNWvts/bin/testrm tapetest
# Retreive the old tape_info so postbackout can testadd it.
mv tapetestTemp/tape_info.o .
rm -rf tapetestTemp

if { pkginfo $iopts SUNWvtsx 1>/dev/null 2>&1 ; } then
   # do 64 bit version (ld works in both 32 and 64 bit modes correctly)
   echo "Processing 64 bit binaries..."
   cd $PDIR/SUNWvts/bin/sparcv9
   $PDIR/SUNWvts/bin/testrm tapetest
   mv tapetestTemp/tape_info.o .
   rm -rf tapetestTemp
else
   # don't do anything for 64 bit if not found
   :
fi

