#!/bin/sh

#  ask for OS
echo "1) Linux "
echo "2) 386BSD "
echo "3) SunOS "
echo "4) HP-UX "
echo "5) Ultrix "
echo "6) NeXTSTEP 3.0 "
echo "7) Other... "
echo
echo -n "What OS do you use? "
read opsys
echo
case $opsys in
  1)
  OS=linux ;;
  2)
  OS=386bsd ;;
  3)
  OS=sunos ;;
  4)
  OS=hpux ;;
  5)
  OS=ultrix ;;
  6)
  OS=next3.0 ;;
  *) 
  echo "For unsupported Operating systems please read and change 'Config' as required" ;
  echo "do 'cat Config Makefile.dist>Makefile' and then you can type 'make'." ; exit 1 ;;
esac
echo "catting Config.$OS and Makefile.dist to create the Makefile"
echo "catting ../test/Config.$OS and ../test/Makefile.dist to create the ../test/Makefile"
cat Config.$OS Makefile.dist > Makefile
cat ../test/Config.$OS ../test/Makefile.dist > ../test/Makefile

  
if [ "${OS}" = "linux" ]
then
	echo "catting Config.$OS and Makesh.dist to create Make.shlib"
	cat Config.$OS Makesh.dist >Make.shlib
fi

