home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / c++2latex / part08 / configure < prev   
Encoding:
Text File  |  1994-08-07  |  1.3 KB  |  65 lines

  1. #! /bin/csh -f
  2. # Script to `configure' C++2LaTeX v3.0
  3. # $Id: configure,v 1.1 1993/02/15 17:21:53 joke Exp $
  4. #
  5. set package="C++2LaTeX v3.0"
  6. set default=sunos
  7. set ostype=$default
  8. set configdir=../config
  9. set incdir=./src
  10. #
  11. top:
  12. if ($#argv > 0) then
  13.     switch ($1:q)
  14.  
  15.     case --*:
  16.     set ostype = "$1:q"
  17.     shift
  18.     goto top
  19.  
  20.     default:
  21.     goto usage
  22.     endsw
  23. endif
  24.  
  25. rm -f $incdir/config.h
  26. if ("$ostype" == "--sunos") then
  27.     ln -s $configdir/sunos.cf $incdir/config.h
  28.     echo "$package configured for SunOS/Solaris."
  29.     goto done
  30. endif
  31.  
  32. if ("$ostype" == "--solaris") then
  33.     ln -s $configdir/sunos.cf $incdir/config.h
  34.     echo "$package configured for SunOS/Solaris."
  35.     goto done
  36. endif
  37.  
  38. if ("$ostype" == "--linux") then
  39.     ln -s $configdir/linux.cf $incdir/config.h
  40.     echo "$package configured for Linux."
  41.     goto done
  42. endif
  43.  
  44. if ("$ostype" == "--unix") then
  45.     echo "try either: configure --bsd, or: configure --sys5"
  46.     goto done
  47. endif
  48.  
  49. if ("$ostype" == "--sys5") then
  50.     ln -s $configdir/sys5.cf $incdir/config.h
  51.     echo "$package configured for generic unix system V."
  52.     goto done
  53. endif
  54.  
  55. if ("$ostype" == "--bsd") then
  56.     ln -s $configdir/bsd.cf $incdir/config.h
  57.     echo "$package configured for generic BSD unix."
  58.     goto done
  59. endif
  60.  
  61. usage:
  62.     echo "usage: configure --<os-type>    (eg. configure --sunos)"
  63.  
  64. done:
  65.