home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ade-misc-bin.lha / Sys / S / ADE-Startup
Text File  |  1996-10-05  |  3KB  |  87 lines

  1. ; This script is executed from your S:User-Startup script in order to
  2. ; set up the ADE environment.  All assigns are made relative to "ADE:",
  3. ; which has to be assigned prior to running this script.  This would
  4. ; normally be done like:
  5. ;
  6. ;    assign ADE: FreshFish-Vol10:ADE-bin
  7. ;    execute ADE:Sys/S/ADE-Startup
  8.  
  9. ; Check to see if we have already run this script once, and if so, simply
  10. ; exit.  We might try to run it more than once, if for example the user
  11. ; reruns the install script in order to change some metatool prefs.
  12.  
  13. if EXISTS ram:ADE-datestamp
  14.   skip END
  15. else
  16.   date >ram:ADE-datestamp
  17. endif
  18.  
  19. ; Tools should search LOCAL: for files that may have been added to 
  20. ; supplement the standard ADE environment, to account for the case 
  21. ; where it is impossible to add these files directly to the ADE:
  22. ; tree (such as when it is located on a CD-ROM)
  23. ;
  24. ; If no LOCAL: is already defined, supply a default assignment to T:,
  25. ; which we know exists.  This assignment can be overridden in the
  26. ; user's User-Startup script, either by defining it before calling
  27. ; this script, or redefining it afterwards.
  28.  
  29. assign LOCAL: exists >NIL:
  30. if WARN
  31.   assign LOCAL: T:
  32. endif
  33.  
  34. ; Make assigns for ADE things, like general binaries, manual pages,
  35. ; info files, etc.  We try to keep these to an absolute minimum!
  36.  
  37. assign BIN:    ADE:bin
  38. assign USR:    ADE:
  39. if EXISTS ADE:var
  40.   assign VAR:    ADE:var
  41. endif
  42. assign ETC:    ADE:etc
  43. assign INFO:    ADE:info
  44. assign MAN:    ADE:man
  45. assign TMP:    T:
  46. path ADE:bin  ADD
  47.  
  48. ; Add various directories under ADE: that supplement the normal
  49. ; system logical defines, like "LIBS:", "L:", "DEV:", etc.
  50. ; We have to have C: in here if we want the Workbench to notice
  51. ; anything in BIN:, or have them available from any CLIs already
  52. ; running.
  53.  
  54. assign C:    ADE:bin        ADD
  55. assign DEVS:    ADE:Sys/Devs    ADD
  56. assign LIBS:    ADE:Sys/Libs    ADD
  57. assign L:    ADE:Sys/L    ADD
  58. assign S:    ADE:Sys/S    ADD
  59.  
  60. ; Assign GNU: to ADE: for backwards compatibility.  This will be
  61. ; removed at some point in the future.
  62.  
  63. ;assign GNU:    ADE:    
  64.  
  65. ; Mount the ixpipe: device
  66.  
  67. mount IXPIPE: from DEVS:MountList.IXPIPE
  68.  
  69. ; Install GNU Emacs version 18.59
  70. ;   Assign GNUEmacs: so emacs can find it's files.
  71. ;   Add the Useful/s dir to s: so various .emacs files can be found.
  72. ;   Cancel any system supplied alias for emacs.
  73. ;   Use the emacs specific shell since bin:sh (PD ksh) causes a crash
  74. ;     when you try to use it under emacs.
  75.  
  76. assign GNUemacs: ADE:lib/emacs/18.59
  77. ;assign S: ADE:Sys/S ADD    (this is done earlier)
  78. unalias emacs
  79. setenv ESHELL GNUemacs:etc/sh
  80.  
  81. ; Install Matt Dillon's fifo library, for emacs and others.
  82. ; Note that it must be able to find LIBS:fifo.library when run.
  83.  
  84. run <nil: >nil: ADE:Sys/L/fifo-handler
  85.  
  86. LAB END
  87.