Home » Archimedes archive » Acorn User » AU 1997-04 B.adf » PD » PDScheme/Newshound/NewsHound/NewsHound/startup

PDScheme/Newshound/NewsHound/NewsHound/startup

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1997-04 B.adf » PD
Filename: PDScheme/Newshound/NewsHound/NewsHound/startup
Read OK:
File size: 01D2 bytes
Load address: 0000
Exec address: 0000
File contents
| NewsHound Newsbase Transport startup script
|
| By Joseph Heenan, 1996
|
set Newsbase$NewsHounddir <Obey$Dir>
set Newsbase$ReturnCode 0
if "<NewsHound$Dir>" = "" then set Newsbase$ReturnCode 1
if "<NewsHound$ConfigDir>" = "" then set Newsbase$ReturnCode 1
if "<NewsHound$NewsDir>" = "" then set Newsbase$ReturnCode 1
if <Newsbase$ReturnCode> = 0 then run <Obey$dir>.group -make
if <Newsbase$ReturnCode> = 1 then set Newsbase$ReturnInfo NewsHound has not been seen
00000000  7c 20 4e 65 77 73 48 6f  75 6e 64 20 4e 65 77 73  || NewsHound News|
00000010  62 61 73 65 20 54 72 61  6e 73 70 6f 72 74 20 73  |base Transport s|
00000020  74 61 72 74 75 70 20 73  63 72 69 70 74 0a 7c 0a  |tartup script.|.|
00000030  7c 20 42 79 20 4a 6f 73  65 70 68 20 48 65 65 6e  || By Joseph Heen|
00000040  61 6e 2c 20 31 39 39 36  0a 7c 0a 73 65 74 20 4e  |an, 1996.|.set N|
00000050  65 77 73 62 61 73 65 24  4e 65 77 73 48 6f 75 6e  |ewsbase$NewsHoun|
00000060  64 64 69 72 20 3c 4f 62  65 79 24 44 69 72 3e 0a  |ddir <Obey$Dir>.|
00000070  73 65 74 20 4e 65 77 73  62 61 73 65 24 52 65 74  |set Newsbase$Ret|
00000080  75 72 6e 43 6f 64 65 20  30 0a 69 66 20 22 3c 4e  |urnCode 0.if "<N|
00000090  65 77 73 48 6f 75 6e 64  24 44 69 72 3e 22 20 3d  |ewsHound$Dir>" =|
000000a0  20 22 22 20 74 68 65 6e  20 73 65 74 20 4e 65 77  | "" then set New|
000000b0  73 62 61 73 65 24 52 65  74 75 72 6e 43 6f 64 65  |sbase$ReturnCode|
000000c0  20 31 0a 69 66 20 22 3c  4e 65 77 73 48 6f 75 6e  | 1.if "<NewsHoun|
000000d0  64 24 43 6f 6e 66 69 67  44 69 72 3e 22 20 3d 20  |d$ConfigDir>" = |
000000e0  22 22 20 74 68 65 6e 20  73 65 74 20 4e 65 77 73  |"" then set News|
000000f0  62 61 73 65 24 52 65 74  75 72 6e 43 6f 64 65 20  |base$ReturnCode |
00000100  31 0a 69 66 20 22 3c 4e  65 77 73 48 6f 75 6e 64  |1.if "<NewsHound|
00000110  24 4e 65 77 73 44 69 72  3e 22 20 3d 20 22 22 20  |$NewsDir>" = "" |
00000120  74 68 65 6e 20 73 65 74  20 4e 65 77 73 62 61 73  |then set Newsbas|
00000130  65 24 52 65 74 75 72 6e  43 6f 64 65 20 31 0a 69  |e$ReturnCode 1.i|
00000140  66 20 3c 4e 65 77 73 62  61 73 65 24 52 65 74 75  |f <Newsbase$Retu|
00000150  72 6e 43 6f 64 65 3e 20  3d 20 30 20 74 68 65 6e  |rnCode> = 0 then|
00000160  20 72 75 6e 20 3c 4f 62  65 79 24 64 69 72 3e 2e  | run <Obey$dir>.|
00000170  67 72 6f 75 70 20 2d 6d  61 6b 65 0a 69 66 20 3c  |group -make.if <|
00000180  4e 65 77 73 62 61 73 65  24 52 65 74 75 72 6e 43  |Newsbase$ReturnC|
00000190  6f 64 65 3e 20 3d 20 31  20 74 68 65 6e 20 73 65  |ode> = 1 then se|
000001a0  74 20 4e 65 77 73 62 61  73 65 24 52 65 74 75 72  |t Newsbase$Retur|
000001b0  6e 49 6e 66 6f 20 4e 65  77 73 48 6f 75 6e 64 20  |nInfo NewsHound |
000001c0  68 61 73 20 6e 6f 74 20  62 65 65 6e 20 73 65 65  |has not been see|
000001d0  6e 0a                                             |n.|
000001d2