host.rc
author claus
Mon, 21 Nov 1994 18:37:56 +0100
changeset 8 d82829c0d867
parent 5 420e4af41733
child 103 9f5c03497b38
permissions -rw-r--r--
*** empty log message ***

"*
 * $Header$
 *
 * DONT add site specific things here - use your own h_xxx.rc file instead
 * where xxx stands for your hostname(s)
 *
 * startup configuration for host specific stuff -
 * looks for a host specific init file and loads it.
 *"

|host s|

(OperatingSystem getSystemType = 'hpux') ifTrue:[
    OperatingSystem disableSignal:(OperatingSystem sigALRM)
].

host := OperatingSystem getHostName.
host isNil ifTrue:[
    'cannot determine host I am running on' errorPrintNewline.
] ifFalse:[
    "if there is a corresponding file ..."
    (Smalltalk at:#'_ImageHostName') ~= host ifTrue:[
	('trying host setup h_' , host , '.rc ...') errorPrintNewline.

	s := Smalltalk systemFileStreamFor:('h_' , host , '.rc').
	s notNil ifTrue:[
	    s fileIn.
	    s close.
	].
	Smalltalk at:#'_ImageHostName' put:host.
    ]
].
!