2004-11-30 00:47:00 +03:00
| Run file for NetSurf. ( $Revision: 1.32 $ )
2004-09-27 09:21:00 +04:00
|
| This file ensures that the system resources required by NetSurf are
| present. Additionally, it forces setting of system variables related
| to NetSurf.
| Set system variables and application sprites
Set NetSurf$ForceVars 1
2003-08-25 02:39:55 +04:00
<Obey$Dir>.!Boot
2004-09-27 09:21:00 +04:00
UnSet NetSurf$ForceVars
2002-10-15 15:09:56 +04:00
2004-09-27 09:21:00 +04:00
| We need RISC OS 3
2003-08-25 02:39:55 +04:00
RMEnsure UtilityModule 3.00 Error NetSurf needs RISC OS 3 or later
2002-10-15 15:09:56 +04:00
2003-08-25 02:39:55 +04:00
| Ensure Nested WIMP is installed
| http://acorn.riscos.com (in the universal boot archive)
2004-09-27 09:21:00 +04:00
RMEnsure WindowManager 3.80 Error NetSurf requires the Nested Window Manager. This can be obtained by downloading the Universal Boot sequence from http://acorn.riscos.com/
| Ensure the System resource exists - can't do much if it doesn't
If "<System$Path>" = "" Then Set System$Path_Message System resources not found.
2002-10-15 15:09:56 +04:00
2003-08-25 02:39:55 +04:00
| Ensure CallASWI is installed
| http://www.iyonix.com/32bit/
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
2003-11-01 23:16:00 +03:00
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error NetSurf requires the CallASWI module. This can be downloaded from http://www.iyonix.com/32bit/system.shtml
2003-08-25 02:39:55 +04:00
2003-09-11 02:27:15 +04:00
| Ensure DrawFile module is installed
| http://acorn.riscos.com/riscos/releases/drawfile.arc
| Should be installed in !System.310.Modules
2003-09-11 02:40:32 +04:00
RMEnsure DrawFile 1.30 RMLoad System:Modules.DrawFile
2003-11-01 23:16:00 +03:00
RMEnsure DrawFile 1.30 Error NetSurf requires the DrawFile module. An old verson of this can be downloaded from http://acorn.riscos.com/riscos/releases/drawfile.arc
2003-09-11 02:27:15 +04:00
2003-08-25 02:39:55 +04:00
| Ensure SharedUnixLibrary is installed
| http://www.chocky.org/unix/usage.html
RMEnsure SharedUnixLibrary 1.02 RMLoad System:Modules.SharedULib
2003-11-01 23:16:00 +03:00
RMEnsure SharedUnixLibrary 1.02 Error NetSurf requires SharedUnixLibrary 1.02 or later. This can be downloaded from http://www.chocky.org/unix/usage.html
2003-08-25 02:39:55 +04:00
| Load AcornURI if it isn't already
| http://sudden.recoil.org/
2003-11-08 02:51:13 +03:00
Unset NetSurf$Start_URI_Handler
RMEnsure AcornURI 0.12 Set NetSurf$Start_URI_Handler 1
2003-08-25 02:39:55 +04:00
RMEnsure AcornURI 0.12 RMLoad System:Modules.Network.URI
2003-11-01 23:16:00 +03:00
RMEnsure AcornURI 0.12 Error NetSurf requires AcornURI 0.12 or later. A version of this can be found at http://sudden.recoil.org/others/
2003-11-08 02:51:13 +03:00
RMEnsure AcornURI 0.12 Unset NetSurf$Start_URI_Handler
2003-08-25 02:39:55 +04:00
| Check for mime map module
If "<InetDBase$Path>" = "" Then Error Inet databases can not be found
If "<Inet$MimeMappings>" = "" Then Set Inet$MimeMappings InetDBase:MimeMap
RMEnsure MimeMap 0.10 RMLoad System:Modules.Network.MimeMap
RMEnsure MimeMap 0.10 Error NetSurf requires MimeMap 0.10 or later
2003-07-30 17:06:22 +04:00
2004-03-10 13:41:27 +03:00
| Ensure Tinct is loaded
2004-08-09 00:16:17 +04:00
| http://www.tinct.net
2004-11-03 02:23:07 +03:00
RMEnsure Tinct 0.09 RMLoad System:Modules.Tinct
RMEnsure Tinct 0.09 Error NetSurf requires Tinct 0.09 or later. This can be downloaded from http://www.tinct.net
2004-03-10 13:41:27 +03:00
2004-09-27 09:21:00 +04:00
| Ensure Iconv
| http://moose.mine.nu:6888/iconv002.zip
| Not an error if not present - there'll be no charset conversion.
2004-09-27 20:50:16 +04:00
RMEnsure Iconv 0.02 IfThere System:Modules.Iconv Then RMLoad System:Modules.Iconv
2004-09-27 09:21:00 +04:00
WimpSlot -min 2240k -max 2240k
2004-11-30 00:47:00 +03:00
Run <NetSurf$Dir>.!RunImage %*0 2><NetSurf$Dir>.stderr