home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / binaries / escripts.lha / Startup < prev   
AmigaDOS Script File  |  1993-08-27  |  1KB  |  47 lines

  1. .key epp/S
  2. .bra [
  3. .ket ]
  4.  
  5. CD DH0:E
  6. Path bin scripts add
  7.  
  8. If $CPU eq 68030  ;for my Derringer-030
  9.   Run >NIL: SYS:System/Monitors/GOMF1.0
  10.   If "[epp]" eq "epp"
  11.     If not exists RAM:PModules
  12.       MakeDir RAM:PModules
  13.       Protect RAM:PModules -d
  14.       Copy PModules/#?.e RAM:PModules quiet
  15.       MakeDir RAM:PModules/Headers
  16.       Copy PModules/Headers RAM:PModules/Headers all quiet
  17.     EndIf
  18.     Assign PMODULES: RAM:PModules
  19.     Assign EHEADERS: RAM:PModules/Headers
  20.   Else
  21.     Assign PMODULES: PModules
  22.     Assign EHEADERS: PModules/Headers
  23.   EndIf
  24. Else  ;$CPU eq 68000
  25.   Assign PMODULES: PModules
  26.   Assign EHEADERS: PModules/Headers
  27. EndIf
  28.  
  29. Assign EMODULES: Modules
  30.  
  31. Failat 21
  32.  Execute >NIL: Scripts/AutoCD
  33.  CD >NIL: source
  34.  ; if the first one fails the second will succeed, and vice versa
  35.  
  36. Failat 10
  37. Quit
  38.  
  39. ; SCRIPT NAME
  40. ;   DH0:E/Startup
  41. ;
  42. ; DESCRIPTION
  43. ;   Selects development environment for E based on cpu type (stored in
  44. ;   environment var $CPU by program IdentifyProcessors) and the switch EPP.
  45. ;   If switch EPP is supplied on the command line, pmodules and headers are
  46. ;   installed in ram:.
  47.