#! /bin/sh

echo
echo "SaVi: You need to read the savi1.2.4/README file."
echo "A brief getting-started summary is given here:"
echo "  cd savi1.2.4; make ARCH=linux; ./savi"
echo "Replace ARCH value with other platforms (sun, irix, cygwin) if needed."
echo

if [ -f /vmlinuz -o -f /boot/vmlinuz ]; then
  echo "This appears to be a Linux operating system. Try building SaVi with:"
  echo "  make ARCH=linux"
  echo "You may need to edit savi1.2.4/src/Makefile_defs.linux to build."
elif [ -d /devices ]; then
  echo "This appears to be a Sun Solaris operating system. Try building SaVi with:"
  echo "  make ARCH=sun"
  echo "You may need to edit savi1.2.4/src/Makefile_defs.sun to build."
elif [ -d /usr/bsd -a -d /usr/sbin ]; then
  echo "This may be an Irix operating system. Try building SaVi with:"
  echo "  make ARCH=irix"
  echo "You may need to edit savi1.2.4/src/Makefile_defs.irix to build."
elif [ -d /cygdrive ]; then
  echo "This appears to be using Cygwin. Try building SaVi with:"
  echo "  make ARCH=cygwin"
  echo "You may need to edit savi1.2.4/src/Makefile_defs.cygwin to build."
else
  echo "This system isn't familiar. You could try building SaVi with just:"
  echo "  make"
  echo "You may need to edit the generic savi1.2.4/src/Makefile_defs to build."
fi

echo
echo "You will also need to edit the savi1.2.4/savi wrapper script that runs"
echo "the SaVi binary to set environment variables appropriately."
echo "You may need to edit the Tcl/Tk library locations set in this ./savi"
echo "script by TCL_LIBRARY and TK_LIBRARY when building dynamically."
echo
echo "The ./savi wrapper script sets \$SAVI to the location"
echo "of the savi1.2.4/ directory that contains files all SaVi"
echo "binaries need, and also contains the README file that you"
echo "need to read. Always run SaVi with the ./savi wrapper script."
echo
echo "Enjoy playing with SaVi!"
