home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / mint / ksh_v04a / profile.ksh < prev    next >
Encoding:
Text File  |  1991-02-17  |  1.9 KB  |  81 lines

  1. #
  2. #    profile.ksh
  3. #
  4. #    This file is executed by the very lowest level of ksh. It will only
  5. #    be executed if ksh is executed by mint.prg ( ie. if it's parent's
  6. #    process ID is 0 ), or if ksh is started as ksh -L ( for login )
  7. #
  8.  
  9. export HOME=d:/ksh/ksh
  10. export SHELL=$HOME/ksh.tos
  11.  
  12. #    tell ksh where it's environment file is. This will be included by every
  13. #    execution of ksh
  14.  
  15. export ENV=~/kshrc.ksh
  16.  
  17. #    set up 50 line mode
  18. d:/bin/fsw small
  19. export TERM=atari50
  20. d:/bin/cls
  21.  
  22. export TMPDIR=g:/temp
  23. export TEMP=$TMPDIR
  24. export LESS=-cMx4
  25.  
  26. #    environment variables for mgr
  27. mgr_home=d:/mgr
  28. export MGRFONT=$mgr_home/font
  29. export MGRICON=$mgr_home/icon
  30. export DEFAULT_FONT=$MGRFONT/gal7x11r.fnt
  31.  
  32. LOGOUT=~/logout.ksh
  33.  
  34. #    Uncomment the following bit to start up the printer spooler
  35. #    switch prn to aux for a serial printer
  36. #    $LPDPID is used by logout.ksh to tidy up
  37. #    lpd v:/prn &
  38. #    LPDPID=$!
  39.  
  40. #    Say hello :-)
  41. echo $KSH_VERSION
  42. echo MiNT Version is $MINT_VERSION
  43.  
  44. #    Now sort out which compiler we want to run with
  45. #    ( pity that we don't have a select statement )
  46. #    Get rid of this whole section if it's not relevant
  47.  
  48. echo "\n Choose a compiler\n"
  49. echo " 1.    Lattice C V5"
  50. echo " 2.    Gnu GCC\n"
  51.  
  52. read comp_val?"Enter 1 or 2 [2]"
  53.  
  54. case $comp_val in
  55.     1)
  56.         echo "\n Setting up for Lattice C\n"
  57.         compiler_bin=d:/compiler/lc/bin
  58.         export LIB=d:\\compiler\\lc\\lib
  59.         export INCLUDE=d:\\compiler\\lc\\include
  60.         export QUAD=${TEMP}\\
  61.         ;;
  62.     *)
  63.         echo "\n Setting up for GCC\n"
  64.         compiler_bin=d:/compiler/gnu/bin
  65.         export GCCEXEC=d:/compiler/gnu/bin/gcc_
  66.         export GNULIB=e:/mint/lib
  67.         export GNUINC=e:/mint/include
  68.         export CC=gcc
  69.         export AR=gcc_ar
  70.         export AS=gcc_as
  71.         export CPP=gcc_cpp
  72.     ;;
  73. esac
  74.  
  75. unset comp_val
  76.  
  77. #    the leading ';' means check CWD first. ksh doesn't do this by default
  78. #    unlike init.prg ( this is intentional! )
  79.  
  80. export PATH=";d:/unix;d:/bin;d:/etc;d:/bin/cmd;${compiler_bin};d:/mgr/bin"
  81.