home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
useful
/
sys
/
s
/
useful-startup
< prev
next >
Wrap
Text File
|
1994-11-27
|
4KB
|
120 lines
;===========================================================================
; This script is executed from your S:User-Startup script in order to
; set up the USEFUL environment. All assigns are made relative to to
; the "USEFUL:" assign, which has to be made prior to running this script.
; This would normally be done like:
;
; assign USEFUL: GoldFish-V2a:Useful
; execute USEFUL:Sys/S/Useful-Startup
;===========================================================================
; Tools should search LOCAL: for files that the user may have added, since
; he obviously can't add them to directories on the CD-ROM. If no LOCAL:
; is already defined, supply a default assignment to T:, which we know
; exists. This assignment can be later overridden in the user's startup.
assign LOCAL: exists >NIL:
if WARN
assign LOCAL: T:
endif
; Add various directories under USEFUL: that supplement the normal
; system logical defines, like "C:", "LIBS:", "L:", etc. Note that
; the standard assignment for HELP: in SYS:S/Startup-Sequence uses
; the "DEFER" keyword, which means we can't do an ADD to it until
; after we do something with it, which is what the "dir" command
; below does.
dir HELP: >NIL:
assign SYS: USEFUL:Sys ADD
assign C: USEFUL:Sys/C ADD
assign CLASSES: USEFUL:Sys/Classes ADD
assign DEVS: USEFUL:Sys/Devs ADD
assign FONTS: USEFUL:Sys/Fonts ADD
assign HELP: USEFUL:Sys/Locale/Help ADD
assign L: USEFUL:Sys/L ADD
assign LIBS: USEFUL:Sys/Libs ADD
assign LIBS: USEFUL:Sys/Classes ADD
assign LOCALE: USEFUL:Sys/Locale ADD
assign S: USEFUL:Sys/S ADD
assign BIN: USEFUL:Sys/C ADD
path USEFUL:Sys/C ADD
; Install PasTeX
; Set the TeX: PKVol: and MF: assignments to the CDROM version.
if not EXISTS USEFUL:/Files/text/tex/PasTeX
echo "Warning - PasTex not found."
else
assign TeX: USEFUL:/Files/text/tex/PasTeX
assign PKVol: TeX:pk TeX:pk/180x180 TeX:pk/300x300 TeX:pk/360x360
assign MF: TeX:mf
assign REXX: TeX:rexx add
path TeX:bin MF:bin add
endif
; Install Amiga E.
if not EXISTS USEFUL:/Files/dev/e/Amiga_E
echo "Warning - Amiga_E not found."
else
assign EMODULES: USEFUL:/Files/dev/e/Amiga_E/Modules
path USEFUL:/Files/dev/e/Amiga_E/bin add
endif
; Install ACE; an Amiga BASIC compiler.
if not EXISTS USEFUL:/Files/dev/lang/ACE
echo "Warning - ACE not found."
else
assign ACE: USEFUL:/Files/dev/lang/ACE
path ACE:bin add
assign ACElib: ACE:lib ; bas finds scanned libraries here.
assign ACEbmaps: ACE:bmaps ; ace looks here for .bmap files.
assign ACEinclude: ACE:include ; app uses this for include files.
endif
; Find MUI 2.2 things
if not EXISTS USEFUL:/Files/dev/gui/MUI
echo "Warning - MUI 2.2 not found."
else
assign MUI: USEFUL:/Files/dev/gui/MUI
assign LIBS: MUI:libs add
assign LOCALE: MUI:Locale add
assign HELP: MUI:Docs add
endif
; Add the local datatypes from USEFUL:sys/devs/datatypes. Apparently
; just adding the devs directory to the DEVS: assign with a multiassign
; is not enough, nor is "AddDataTypes REFRESH". Also supply a default
; assignment for JPEGTMP: if one does not exist. This can be overridden
; later by the user.
if exists c:AddDataTypes
c:AddDataTypes FILES USEFUL:sys/devs/datatypes/GIF
c:AddDataTypes FILES USEFUL:sys/devs/datatypes/JPEG
assign JPEGTMP: exists >NIL:
if WARN
assign JPEGTMP: T:
endif
endif
; Make Oberon ready to run.
Assign OBERON-A: USEFUL:/Files/dev/obero/Oberon-A
Assign FPE: OBERON-A:
Assign OLIB: OBERON-A:OLIB
;
; Add Oberon-A stuff to system assigns
;
Assign LIBS: OBERON-A:LIBS ADD
Assign REXX: OBERON-A:REXX ADD
;
; Make Oberon-A programs visible
;
Path OBERON-A: OBERON-A:C ADD