#! /bin/sh

cppsim_root=$CPPSIMSHAREDHOME
ARCH=`arch`

if [ "$ARCH" = "i686" ] 
   then
   ${cppsim_root}/HspiceToolbox/Spice2CppNet/bin/glnx86/spice2cppnet $1 $2 $3
else
if [ "$ARCH" = "x86_64" ] 
   then
   ${cppsim_root}/HspiceToolbox/Spice2CppNet/bin/glnxa64/spice2cppnet $1 $2 $3
else
if [ "$ARCH" = "sun4" ] 
   then
   ${cppsim_root}/HspiceToolbox/Spice2CppNet/bin/sol64/spice2cppnet $1 $2 $3
else
   echo "Error: architecture $ARCH unknown"
fi
fi
fi
