home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / Edge1721.DMS / Edge1721.adf / ExtraStuff / Edge_SasC.lha / Install < prev    next >
Encoding:
Text File  |  1993-11-09  |  4.2 KB  |  132 lines

  1. .k ""
  2. ; Install-script for "Henrik Nordstroms Compiler-Interface for Edge"
  3. ; $VER: install 1.2 (05-Mar-93 00:28:02)
  4. ECHO "This script will Copy a number of Edge ARexx macros to REXX:"
  5. ECHO "A Compiler-menu to EdgePrg: And install ECHO: handler on SYS:"
  6. ECHO "(Copy handler to SYS:L, and Install mountentry in DEVS:Mountlist"
  7. ECHO "or DEVS:DOSDrivers) If installed in DEVS:Mountlist, a corresponding"
  8. ECHO "Mount-command will be added to your s:User-Startup"
  9. ECHO "Se EchoHandler/EchoHandler.doc for more info about ECHO:*n"
  10. ECHO "NOTE: EdgePrg: is assigned by Edge at startup, so you must run Edge"
  11. ECHO "      before you execute this install-script!!*n"
  12.  
  13. failat 21
  14.  
  15. ASK "Automatic install?"
  16.  
  17. if warn
  18.  copy Rexx REXX:
  19.  assign T$$: ""
  20.  cd rexx:
  21.  assign >nil: SC: exists
  22.  if not warn
  23.   echo "   SAS/C Version 6"
  24.   copy hn_addprotos_sc6.edge hn_addprotos.edge
  25.   copy hn_build_sc6.edge hn_build.edge
  26.   copy hn_compile_c_sc6.edge hn_compile_c.edge
  27.   copy hn_createproject_sc6.edge hn_createproject.edge
  28.   copy hn_link_sc6.edge hn_link.edge
  29.   copy hn_readerr_c_sc6.edge  hn_readerr_c.edge 
  30.  else
  31.   assign >nil: LC: exists
  32.   if not warn
  33.    echo "   SAS/C version 5"
  34.    copy hn_addprotos_sc5.edge hn_addprotos.edge
  35.    copy hn_build_sc5.edge hn_build.edge
  36.    copy hn_compile_c_sc5.edge hn_compile_c.edge
  37.    copy hn_createproject_sc5.edge hn_createproject.edge
  38.    copy hn_link_sc5.edge hn_link.edge
  39.    copy hn_readerr_c_sc5.edge  hn_readerr_c.edge 
  40.   else
  41.    copy hn_link_sc5.edge hn_link.edge
  42.    copy hn_build_generic.edge hn_build.edge
  43.    echo "   SAS/C not found, generic version used."
  44.    echo "   no errorparsing included."
  45.    echo "   Write your own hn_readerr_<ext>.edge files"
  46.   endif
  47.  endif
  48.  cd T$$:
  49.  assign T$$:
  50.  ECHO "   ARexx macros installed"
  51.  
  52.  copy edge.compiler.menu(%) to edgeprg:
  53.  echo >>edgeprg:edge.menus "*n;** Compiler-menu*ninclude *"edge.compiler.menu*""
  54.  echo "   compiler menu installed"
  55.  
  56.  copy echohandler/EchoHandler(%) to L:
  57.  if exists DEVS:DOSDrivers
  58.    copy echohandler/echo(%|.info) to devs:DOSDrivers/
  59.  else
  60.    type echohandler/MountList.ECHO >>devs:Mountlist
  61.    ECHO "   MountEntry added to DEVS:Mountlist"
  62.    echo >>s:User-Startup "*n;** Mount ECHO: handler used by Edge CompilerInterface*nMount ECHO:"
  63.    echo "   Mount ECHO: added to s:User-Startup"
  64.    echo "   ECHO: handler installed"
  65.  endif
  66.  mount ECHO:
  67. else
  68.  ASK "Install ARexx macros?"
  69.  if warn
  70.   copy Rexx REXX:
  71.   assign T$$: ""
  72.   cd rexx:
  73.   assign >nil: SC: exists
  74.   if not warn
  75.    copy hn_addprotos_sc6.edge hn_addprotos.edge
  76.    copy hn_build_sc6.edge hn_build.edge
  77.    copy hn_compile_c_sc6.edge hn_compile_c.edge
  78.    copy hn_createproject_sc6.edge hn_createproject.edge
  79.    copy hn_link_sc6.edge hn_link.edge
  80.    copy hn_readerr_c_sc6.edge  hn_readerr_c.edge 
  81.    echo "   SAS/C Version 6"
  82.   else
  83.    assign >nil: LC: exists
  84.    if not warn
  85.     copy hn_addprotos_sc5.edge hn_addprotos.edge
  86.     copy hn_build_sc5.edge hn_build.edge
  87.     copy hn_compile_c_sc5.edge hn_compile_c.edge
  88.     copy hn_createproject_sc5.edge hn_createproject.edge
  89.     copy hn_link_sc5.edge hn_link.edge
  90.     copy hn_readerr_c_sc5.edge  hn_readerr_c.edge 
  91.     echo "   SAS/C version 5"
  92.    else
  93.     copy hn_link_sc5.edge hn_link.edge
  94.     copy hn_build_generic.edge hn_build.edge
  95.     echo "   SAS/C not found, generic version used."
  96.     echo "   no errorparsing included."
  97.     echo "   Write your own hn_readerr_<ext>.edge files"
  98.    endif
  99.   endif
  100.   cd T$$:
  101.   assign T$$:
  102.  endif
  103.  ASK "Install compiler menu?"
  104.  if warn
  105.   copy edge.compiler.menu(%) to edgeprg:
  106.   ASK "Install menu in edge.menus?"
  107.   if warn
  108.    echo >>edgeprg:edge.menus "*n;** Compiler-menu*ninclude *"edge.compiler.menu*""
  109.    echo "   compiler menu installed"
  110.   else
  111.    echo "add *"include edge.compiler.menu*" to edgeprg:edge.menus to activate"
  112.   endif
  113.  endif
  114.  ASK "Install ECHO: handler?"
  115.  if warn
  116.   copy echohandler/EchoHandler(%) to L:
  117.   if exists DEVS:DOSDrivers
  118.    copy echohandler/echo(%|.info) to devs:DOSDrivers
  119.   else
  120.    type echohandler/MountList.ECHO >>devs:Mountlist
  121.    ECHO "   MountEntry added to DEVS:Mountlist"
  122.    ASK "add *"Mount ECHO:*" to s:User-Startup?"
  123.    if warn
  124.     echo >>s:User-Startup "*n;** Mount ECHO: handler used by Edge CompilerInterface*nMount ECHO:"
  125.     echo "   Mount ECHO: added to s:User-Startup"
  126.    endif
  127.   endif
  128.   mount ECHO:
  129.   echo "   ECHO: handler installed"
  130.  endif
  131. endif
  132.