Home » Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF » !BEEBARC/DOCS/ADD\INF

!BEEBARC/DOCS/ADD\INF

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 » Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF
Filename: !BEEBARC/DOCS/ADD\INF
Read OK:
File size: 06AE bytes
Load address: FFFFFF47
Exec address: 3FAE890
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
  ___     _    _   ___       __
 / _ \ __| |__| | / (_)_ _  / _|
|  _  / _` / _` |/ /| | ' \|  _|
|_| |_\__,_\__,_/_/ |_|_||_|_|

A command line utility to convert directories of BBC files (with DFS-style
filenames) stored in the standard RISC OS format to directories containing
.inf files.


Usage
=====

Usage: Add/inf <source dir> <dest dir> [-v] [-w] [-a]

Parameters:
-----------

 <source dir>	The directory containing the BBC files. This directory should
 		be arranged in a DFS-like way (see the chapter on 65Host in
 		your Applications Guide for details)
 <dest dir>	The directory to which the BBC and .inf files should be
		written. Will be created if necessary
 -v		Verbose
 -w		Wipe files in destination directory
 -a		Use ZIP archive (requires SparkFS)

Add/inf works by scanning the source directory, recording some useful
information, then copying the files across to the destination directory,
renaming as "000", "001", etc.

Also created are files "000/inf", "001/inf", etc. - one per file in the
source directory, in a format suitable for users of BBC emulators running on
non-Acorn machines, and for conversion by Un/inf.

If a filename is too long (ie. cannot be converted into a DFS-format filename
without truncation) no files will be copied.

BASIC programs, ROM images and Command files are recognised and retyped
appropriately.

The destination directory must already exist. It is wiped (if the -w option
is used) after the scan is completed, but before copying begins.

Author
======

Darren Salt. Contactable at:
	arcsalt@spuddy.mew.co.uk	<- preferred address
	darren.salt@unn.ac.uk		<- until June 1997?

Written in response to a request from Wouter Scholten (wouters@cistron.nl).
00000000  20 20 5f 5f 5f 20 20 20  20 20 5f 20 20 20 20 5f  |  ___     _    _|
00000010  20 20 20 5f 5f 5f 20 20  20 20 20 20 20 5f 5f 0a  |   ___       __.|
00000020  20 2f 20 5f 20 5c 20 5f  5f 7c 20 7c 5f 5f 7c 20  | / _ \ __| |__| |
00000030  7c 20 2f 20 28 5f 29 5f  20 5f 20 20 2f 20 5f 7c  || / (_)_ _  / _||
00000040  0a 7c 20 20 5f 20 20 2f  20 5f 60 20 2f 20 5f 60  |.|  _  / _` / _`|
00000050  20 7c 2f 20 2f 7c 20 7c  20 27 20 5c 7c 20 20 5f  | |/ /| | ' \|  _|
00000060  7c 0a 7c 5f 7c 20 7c 5f  5c 5f 5f 2c 5f 5c 5f 5f  ||.|_| |_\__,_\__|
00000070  2c 5f 2f 5f 2f 20 7c 5f  7c 5f 7c 7c 5f 7c 5f 7c  |,_/_/ |_|_||_|_||
00000080  0a 0a 41 20 63 6f 6d 6d  61 6e 64 20 6c 69 6e 65  |..A command line|
00000090  20 75 74 69 6c 69 74 79  20 74 6f 20 63 6f 6e 76  | utility to conv|
000000a0  65 72 74 20 64 69 72 65  63 74 6f 72 69 65 73 20  |ert directories |
000000b0  6f 66 20 42 42 43 20 66  69 6c 65 73 20 28 77 69  |of BBC files (wi|
000000c0  74 68 20 44 46 53 2d 73  74 79 6c 65 0a 66 69 6c  |th DFS-style.fil|
000000d0  65 6e 61 6d 65 73 29 20  73 74 6f 72 65 64 20 69  |enames) stored i|
000000e0  6e 20 74 68 65 20 73 74  61 6e 64 61 72 64 20 52  |n the standard R|
000000f0  49 53 43 20 4f 53 20 66  6f 72 6d 61 74 20 74 6f  |ISC OS format to|
00000100  20 64 69 72 65 63 74 6f  72 69 65 73 20 63 6f 6e  | directories con|
00000110  74 61 69 6e 69 6e 67 0a  2e 69 6e 66 20 66 69 6c  |taining..inf fil|
00000120  65 73 2e 0a 0a 0a 55 73  61 67 65 0a 3d 3d 3d 3d  |es....Usage.====|
00000130  3d 0a 0a 55 73 61 67 65  3a 20 41 64 64 2f 69 6e  |=..Usage: Add/in|
00000140  66 20 3c 73 6f 75 72 63  65 20 64 69 72 3e 20 3c  |f <source dir> <|
00000150  64 65 73 74 20 64 69 72  3e 20 5b 2d 76 5d 20 5b  |dest dir> [-v] [|
00000160  2d 77 5d 20 5b 2d 61 5d  0a 0a 50 61 72 61 6d 65  |-w] [-a]..Parame|
00000170  74 65 72 73 3a 0a 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ters:.----------|
00000180  2d 0a 0a 20 3c 73 6f 75  72 63 65 20 64 69 72 3e  |-.. <source dir>|
00000190  09 54 68 65 20 64 69 72  65 63 74 6f 72 79 20 63  |.The directory c|
000001a0  6f 6e 74 61 69 6e 69 6e  67 20 74 68 65 20 42 42  |ontaining the BB|
000001b0  43 20 66 69 6c 65 73 2e  20 54 68 69 73 20 64 69  |C files. This di|
000001c0  72 65 63 74 6f 72 79 20  73 68 6f 75 6c 64 0a 20  |rectory should. |
000001d0  09 09 62 65 20 61 72 72  61 6e 67 65 64 20 69 6e  |..be arranged in|
000001e0  20 61 20 44 46 53 2d 6c  69 6b 65 20 77 61 79 20  | a DFS-like way |
000001f0  28 73 65 65 20 74 68 65  20 63 68 61 70 74 65 72  |(see the chapter|
00000200  20 6f 6e 20 36 35 48 6f  73 74 20 69 6e 0a 20 09  | on 65Host in. .|
00000210  09 79 6f 75 72 20 41 70  70 6c 69 63 61 74 69 6f  |.your Applicatio|
00000220  6e 73 20 47 75 69 64 65  20 66 6f 72 20 64 65 74  |ns Guide for det|
00000230  61 69 6c 73 29 0a 20 3c  64 65 73 74 20 64 69 72  |ails). <dest dir|
00000240  3e 09 54 68 65 20 64 69  72 65 63 74 6f 72 79 20  |>.The directory |
00000250  74 6f 20 77 68 69 63 68  20 74 68 65 20 42 42 43  |to which the BBC|
00000260  20 61 6e 64 20 2e 69 6e  66 20 66 69 6c 65 73 20  | and .inf files |
00000270  73 68 6f 75 6c 64 20 62  65 0a 09 09 77 72 69 74  |should be...writ|
00000280  74 65 6e 2e 20 57 69 6c  6c 20 62 65 20 63 72 65  |ten. Will be cre|
00000290  61 74 65 64 20 69 66 20  6e 65 63 65 73 73 61 72  |ated if necessar|
000002a0  79 0a 20 2d 76 09 09 56  65 72 62 6f 73 65 0a 20  |y. -v..Verbose. |
000002b0  2d 77 09 09 57 69 70 65  20 66 69 6c 65 73 20 69  |-w..Wipe files i|
000002c0  6e 20 64 65 73 74 69 6e  61 74 69 6f 6e 20 64 69  |n destination di|
000002d0  72 65 63 74 6f 72 79 0a  20 2d 61 09 09 55 73 65  |rectory. -a..Use|
000002e0  20 5a 49 50 20 61 72 63  68 69 76 65 20 28 72 65  | ZIP archive (re|
000002f0  71 75 69 72 65 73 20 53  70 61 72 6b 46 53 29 0a  |quires SparkFS).|
00000300  0a 41 64 64 2f 69 6e 66  20 77 6f 72 6b 73 20 62  |.Add/inf works b|
00000310  79 20 73 63 61 6e 6e 69  6e 67 20 74 68 65 20 73  |y scanning the s|
00000320  6f 75 72 63 65 20 64 69  72 65 63 74 6f 72 79 2c  |ource directory,|
00000330  20 72 65 63 6f 72 64 69  6e 67 20 73 6f 6d 65 20  | recording some |
00000340  75 73 65 66 75 6c 0a 69  6e 66 6f 72 6d 61 74 69  |useful.informati|
00000350  6f 6e 2c 20 74 68 65 6e  20 63 6f 70 79 69 6e 67  |on, then copying|
00000360  20 74 68 65 20 66 69 6c  65 73 20 61 63 72 6f 73  | the files acros|
00000370  73 20 74 6f 20 74 68 65  20 64 65 73 74 69 6e 61  |s to the destina|
00000380  74 69 6f 6e 20 64 69 72  65 63 74 6f 72 79 2c 0a  |tion directory,.|
00000390  72 65 6e 61 6d 69 6e 67  20 61 73 20 22 30 30 30  |renaming as "000|
000003a0  22 2c 20 22 30 30 31 22  2c 20 65 74 63 2e 0a 0a  |", "001", etc...|
000003b0  41 6c 73 6f 20 63 72 65  61 74 65 64 20 61 72 65  |Also created are|
000003c0  20 66 69 6c 65 73 20 22  30 30 30 2f 69 6e 66 22  | files "000/inf"|
000003d0  2c 20 22 30 30 31 2f 69  6e 66 22 2c 20 65 74 63  |, "001/inf", etc|
000003e0  2e 20 2d 20 6f 6e 65 20  70 65 72 20 66 69 6c 65  |. - one per file|
000003f0  20 69 6e 20 74 68 65 0a  73 6f 75 72 63 65 20 64  | in the.source d|
00000400  69 72 65 63 74 6f 72 79  2c 20 69 6e 20 61 20 66  |irectory, in a f|
00000410  6f 72 6d 61 74 20 73 75  69 74 61 62 6c 65 20 66  |ormat suitable f|
00000420  6f 72 20 75 73 65 72 73  20 6f 66 20 42 42 43 20  |or users of BBC |
00000430  65 6d 75 6c 61 74 6f 72  73 20 72 75 6e 6e 69 6e  |emulators runnin|
00000440  67 20 6f 6e 0a 6e 6f 6e  2d 41 63 6f 72 6e 20 6d  |g on.non-Acorn m|
00000450  61 63 68 69 6e 65 73 2c  20 61 6e 64 20 66 6f 72  |achines, and for|
00000460  20 63 6f 6e 76 65 72 73  69 6f 6e 20 62 79 20 55  | conversion by U|
00000470  6e 2f 69 6e 66 2e 0a 0a  49 66 20 61 20 66 69 6c  |n/inf...If a fil|
00000480  65 6e 61 6d 65 20 69 73  20 74 6f 6f 20 6c 6f 6e  |ename is too lon|
00000490  67 20 28 69 65 2e 20 63  61 6e 6e 6f 74 20 62 65  |g (ie. cannot be|
000004a0  20 63 6f 6e 76 65 72 74  65 64 20 69 6e 74 6f 20  | converted into |
000004b0  61 20 44 46 53 2d 66 6f  72 6d 61 74 20 66 69 6c  |a DFS-format fil|
000004c0  65 6e 61 6d 65 0a 77 69  74 68 6f 75 74 20 74 72  |ename.without tr|
000004d0  75 6e 63 61 74 69 6f 6e  29 20 6e 6f 20 66 69 6c  |uncation) no fil|
000004e0  65 73 20 77 69 6c 6c 20  62 65 20 63 6f 70 69 65  |es will be copie|
000004f0  64 2e 0a 0a 42 41 53 49  43 20 70 72 6f 67 72 61  |d...BASIC progra|
00000500  6d 73 2c 20 52 4f 4d 20  69 6d 61 67 65 73 20 61  |ms, ROM images a|
00000510  6e 64 20 43 6f 6d 6d 61  6e 64 20 66 69 6c 65 73  |nd Command files|
00000520  20 61 72 65 20 72 65 63  6f 67 6e 69 73 65 64 20  | are recognised |
00000530  61 6e 64 20 72 65 74 79  70 65 64 0a 61 70 70 72  |and retyped.appr|
00000540  6f 70 72 69 61 74 65 6c  79 2e 0a 0a 54 68 65 20  |opriately...The |
00000550  64 65 73 74 69 6e 61 74  69 6f 6e 20 64 69 72 65  |destination dire|
00000560  63 74 6f 72 79 20 6d 75  73 74 20 61 6c 72 65 61  |ctory must alrea|
00000570  64 79 20 65 78 69 73 74  2e 20 49 74 20 69 73 20  |dy exist. It is |
00000580  77 69 70 65 64 20 28 69  66 20 74 68 65 20 2d 77  |wiped (if the -w|
00000590  20 6f 70 74 69 6f 6e 0a  69 73 20 75 73 65 64 29  | option.is used)|
000005a0  20 61 66 74 65 72 20 74  68 65 20 73 63 61 6e 20  | after the scan |
000005b0  69 73 20 63 6f 6d 70 6c  65 74 65 64 2c 20 62 75  |is completed, bu|
000005c0  74 20 62 65 66 6f 72 65  20 63 6f 70 79 69 6e 67  |t before copying|
000005d0  20 62 65 67 69 6e 73 2e  0a 0a 41 75 74 68 6f 72  | begins...Author|
000005e0  0a 3d 3d 3d 3d 3d 3d 0a  0a 44 61 72 72 65 6e 20  |.======..Darren |
000005f0  53 61 6c 74 2e 20 43 6f  6e 74 61 63 74 61 62 6c  |Salt. Contactabl|
00000600  65 20 61 74 3a 0a 09 61  72 63 73 61 6c 74 40 73  |e at:..arcsalt@s|
00000610  70 75 64 64 79 2e 6d 65  77 2e 63 6f 2e 75 6b 09  |puddy.mew.co.uk.|
00000620  3c 2d 20 70 72 65 66 65  72 72 65 64 20 61 64 64  |<- preferred add|
00000630  72 65 73 73 0a 09 64 61  72 72 65 6e 2e 73 61 6c  |ress..darren.sal|
00000640  74 40 75 6e 6e 2e 61 63  2e 75 6b 09 09 3c 2d 20  |t@unn.ac.uk..<- |
00000650  75 6e 74 69 6c 20 4a 75  6e 65 20 31 39 39 37 3f  |until June 1997?|
00000660  0a 0a 57 72 69 74 74 65  6e 20 69 6e 20 72 65 73  |..Written in res|
00000670  70 6f 6e 73 65 20 74 6f  20 61 20 72 65 71 75 65  |ponse to a reque|
00000680  73 74 20 66 72 6f 6d 20  57 6f 75 74 65 72 20 53  |st from Wouter S|
00000690  63 68 6f 6c 74 65 6e 20  28 77 6f 75 74 65 72 73  |cholten (wouters|
000006a0  40 63 69 73 74 72 6f 6e  2e 6e 6c 29 2e 0a        |@cistron.nl)..|
000006ae
!BEEBARC/DOCS/ADD\INF.m0
!BEEBARC/DOCS/ADD\INF.m1
!BEEBARC/DOCS/ADD\INF.m2
!BEEBARC/DOCS/ADD\INF.m4
!BEEBARC/DOCS/ADD\INF.m5