home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Mosaic
< prev
next >
Wrap
AmigaDOS Script File
|
1995-10-11
|
6KB
|
226 lines
.key FILENAME
.bra [
.ket ]
; $VER: StartMosaic 2.3 (10.10.95)
;
; Starter for AMosaic
;
; (C) 1994 by Bernhard Möllemann
;
; You may use it for any purpose,
; but this Copyright notice must be included and left intact
;
; - V1.1 first Release (23.6.94)
; - V1.2 cleanup of Angelas changes (19.2.95)
; - V1.3 support for special homepage on < OS 3.x (19-2-95 by Angela Schmidt)
; - V2.0 adapted to AMosaic 2.0pre and MP3 (11-Sep-95 Stefan Gybas)
; - V2.1 added check for already running AMosaic (18-Sep-95 Stefan Gybas)
; - V2.2 some small improvements (26-Sep-95 Stefan Gybas)
; - V2.3 start Mosaic1.2 if 2.x detectet, because Moasic2.0 crashes (ZZA, 10.10.95)
FailAt 21
:C/Version >NIL: exec.library VERSION 37
If WARN
Echo "-------------------------------------------------"
Echo "No OS 2.04!"
Echo "You need at least AmigaOS Version 2.04!"
Echo "-------------------------------------------------"
Echo "Kein 2.04!"
Echo "Sie brauchen mindestens AmigaOS Version 2.04!"
Echo "-------------------------------------------------"
Quit 10
EndIf
:C/Version >NIL: muimaster.library
If WARN
Echo "-------------------------------------------------"
Echo "No MUI!"
Echo "Click first on clickme.first please!"
Echo "-------------------------------------------------"
Echo "Kein MUI!"
Echo "Bitte klicken Sie zuerst auf clickme.first!"
Echo "-------------------------------------------------"
Quit 10
EndIf
:C/Version >NIL: muimaster.library VERSION 8
If WARN
Echo "-------------------------------------------------"
Echo "Need at least muimaster.library V8!"
Echo "Please update your System!"
Echo "You will find the new version in"
Echo " *"Pearls/dev/GUI/MUI*""
Echo "-------------------------------------------------"
Echo "Es wird mindestens muimaster.library V8 benötigt!"
Echo "Bitte installieren Sie die neue Version!"
Echo "Sie finden sie unter"
Echo " *"Pearls/dev/GUI/MUI*""
Echo "-------------------------------------------------"
Quit 10
EndIf
; make sure we have a config
If NOT EXISTS ENV:Mosaic/Prefs
If NOT EXISTS ENV:Mosaic
MakeDir ENV:Mosaic
EndIf
Copy :Pearls/comm/Internet/AMosaic/EnvArc/Mosaic ENV:Mosaic CLONE QUIET
;;; adjust image cache on small Amigas
If NOT VAL `Avail TOTAL` GT 1000000
SetEnv Mosaic/ImageCacheSize 200
EndIf
;;; on 68000/010/020 delay image loads
CPU >NIL: CHECK 68030
If WARN
SetEnv Mosaic/DelayImageLoads true
EndIf
EndIf
; set initial window position
If NOT EXISTS ENV:MUI/AMOSAIC.1.wini
If NOT EXISTS ENV:MUI
MakeDir ENV:MUI
EndIf
Copy :Pearls/comm/Internet/AMosaic/EnvArc/MUI/AMOSAIC.1.wini ENV:MUI CLONE QUIET
EndIf
; set home document according to FILENAME and make sure we use a complete path
If [FILENAME]
If EXISTS "`CD`/[FILENAME]"
; file in in current directory (which is not a root directory)
SetEnv Mosaic/HomeDocument file://localhost/`CD`/[FILENAME]
Else
If EXISTS "`CD`[FILENAME]"
; file in in current directory (which is a root directory)
SetEnv Mosaic/HomeDocument file://localhost/`CD`[FILENAME]
Else
; FILENAME must be a complete path (or doesn't exists)
SetEnv Mosaic/HomeDocument file://localhost/[FILENAME]
EndIf
EndIf
Else
; use a different home document on AmigaOS 2.0
:C/Version >NIL: exec.library 39
If WARN
SetEnv Mosaic/HomeDocument file://localhost/:os2index.html
Else
SetEnv Mosaic/HomeDocument file://localhost/:index.html
EndIf
EndIf
; there is a a bug in AMosaic when using documents in root directories
CD :html
; IconX does not copy Workbenchs path so we have to handcraft a minimal path
; "${Mosaic/SetPath}" is a hook for you!
If NOT "${Mosaic/SetPath}" EQ "*${Mosaic/SetPath}"
Execute "${Mosaic/SetPath}"
Else
Path :C Rexx: S:
If EXISTS SYS:Rexxc
Path SYS:Rexxc
EndIf
If EXISTS SYS:System
Path SYS:System
EndIf
If EXISTS SYS:Utilities
Path SYS:Utilities
EndIf
If EXISTS SYS:Tools
Path SYS:Tools
EndIf
If EXISTS SYS:WBStartup
Path SYS:WBStartup
EndIf
If EXISTS SYS:Tools/Commodities
Path SYS:Tools/Commodities
EndIf
EndIf
; check if AMosaic is already running
rx >NIL: "parse arg filename; if show('p','AMOSAIC.1') then do; address 'AMOSAIC.1' 'jump url' filename; exit 5; end;" `GetEnv Mosaic/HomeDocument`
If NOT WARN
; AMosaic not running: try to find the right AMosaic version
; the new versions need more stack for forms
Stack 32768
; ${Moasic/Binary} is a hook in case of the script guesses the wrong version
If NOT "${Mosaic/Binary}" EQ "*${Mosaic/Binary}"
"${Mosaic/Binary}"
Else
; check for AmigaOS 3.0 (AmiTCP and AS225 versions require OS 3.0)
:C/Version >NIL: exec.library VERSION 39
If NOT WARN
; check for AmiTCP 3.0 or higher
:C/Version >NIL: bsdsocket.library VERSION 3
If NOT WARN
:Pearls/comm/Internet/AMosaic/AMosaic2.0pre3_AmiTCP
Else
; check for AS225
:C/Version >NIL: socket.library
If NOT WARN
:Pearls/comm/Internet/AMosaic/AMosaic2.0pre3_AS225
Else
; no network: use NoNet version
:Pearls/comm/Internet/AMosaic/AMosaic2.0pre1_NoNet
EndIf
EndIf
Else
; OS 2.x: use old version
; check for AmiTCP 3.0 or higher
:C/Version >NIL: bsdsocket.library VERSION 3
If NOT WARN
:Pearls/comm/Internet/AMosaic/AMosaic1.2_AmiTCP
Else
; check for AS225
:C/Version >NIL: socket.library
If NOT WARN
:Pearls/comm/Internet/AMosaic/AMosaic1.2_AS225
Else
; found no net
:Pearls/comm/Internet/AMosaic/AMosaic1.2_NoNet
EndIf
EndIf
EndIf
EndIf
EndIf