Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/make

!SLIPdial/Resources/UK/Help/make

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 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/make
Read OK:
File size: 0434 bytes
Load address: 0000
Exec address: 0000
File contents
make <source> <dest>
 Makes one file from another, performing variable substitutions. For example,
 to create an Autoexec file for !TCPIP. Occurances of "%variable" in the
 source file are replaced by the variable value in the output file. Eg:
    ip address [%ipaddress]
    attach asy %port slip ax0 4096 576 %speed
    route add default ax0 [%ip1.%ip2.%ip3.254] 1
 becomes:
    ip address [134.84.101.42]
    attach asy sp_dual 1 slip ax0 4096 576 57600
    route add default ax0 [134.84.101.254] 1

 Specifying output file contents within scripts:
 You can take lines from the script as well as from an input file. Script
 lines following the "make" command which have a "+" as the first character
 will be used as source lines for the output file (the + character being
 stripped off). Specify an input file of "-" to use only these script lines.
 If you specify both a real input file and + lines, the + lines will be used
 after the input file has been processed.

 Comment lines (those beginning with a "#") in the source file are not
 transferred to the output file.
00000000  6d 61 6b 65 20 3c 73 6f  75 72 63 65 3e 20 3c 64  |make <source> <d|
00000010  65 73 74 3e 0a 20 4d 61  6b 65 73 20 6f 6e 65 20  |est>. Makes one |
00000020  66 69 6c 65 20 66 72 6f  6d 20 61 6e 6f 74 68 65  |file from anothe|
00000030  72 2c 20 70 65 72 66 6f  72 6d 69 6e 67 20 76 61  |r, performing va|
00000040  72 69 61 62 6c 65 20 73  75 62 73 74 69 74 75 74  |riable substitut|
00000050  69 6f 6e 73 2e 20 46 6f  72 20 65 78 61 6d 70 6c  |ions. For exampl|
00000060  65 2c 0a 20 74 6f 20 63  72 65 61 74 65 20 61 6e  |e,. to create an|
00000070  20 41 75 74 6f 65 78 65  63 20 66 69 6c 65 20 66  | Autoexec file f|
00000080  6f 72 20 21 54 43 50 49  50 2e 20 4f 63 63 75 72  |or !TCPIP. Occur|
00000090  61 6e 63 65 73 20 6f 66  20 22 25 76 61 72 69 61  |ances of "%varia|
000000a0  62 6c 65 22 20 69 6e 20  74 68 65 0a 20 73 6f 75  |ble" in the. sou|
000000b0  72 63 65 20 66 69 6c 65  20 61 72 65 20 72 65 70  |rce file are rep|
000000c0  6c 61 63 65 64 20 62 79  20 74 68 65 20 76 61 72  |laced by the var|
000000d0  69 61 62 6c 65 20 76 61  6c 75 65 20 69 6e 20 74  |iable value in t|
000000e0  68 65 20 6f 75 74 70 75  74 20 66 69 6c 65 2e 20  |he output file. |
000000f0  45 67 3a 0a 20 20 20 20  69 70 20 61 64 64 72 65  |Eg:.    ip addre|
00000100  73 73 20 5b 25 69 70 61  64 64 72 65 73 73 5d 0a  |ss [%ipaddress].|
00000110  20 20 20 20 61 74 74 61  63 68 20 61 73 79 20 25  |    attach asy %|
00000120  70 6f 72 74 20 73 6c 69  70 20 61 78 30 20 34 30  |port slip ax0 40|
00000130  39 36 20 35 37 36 20 25  73 70 65 65 64 0a 20 20  |96 576 %speed.  |
00000140  20 20 72 6f 75 74 65 20  61 64 64 20 64 65 66 61  |  route add defa|
00000150  75 6c 74 20 61 78 30 20  5b 25 69 70 31 2e 25 69  |ult ax0 [%ip1.%i|
00000160  70 32 2e 25 69 70 33 2e  32 35 34 5d 20 31 0a 20  |p2.%ip3.254] 1. |
00000170  62 65 63 6f 6d 65 73 3a  0a 20 20 20 20 69 70 20  |becomes:.    ip |
00000180  61 64 64 72 65 73 73 20  5b 31 33 34 2e 38 34 2e  |address [134.84.|
00000190  31 30 31 2e 34 32 5d 0a  20 20 20 20 61 74 74 61  |101.42].    atta|
000001a0  63 68 20 61 73 79 20 73  70 5f 64 75 61 6c 20 31  |ch asy sp_dual 1|
000001b0  20 73 6c 69 70 20 61 78  30 20 34 30 39 36 20 35  | slip ax0 4096 5|
000001c0  37 36 20 35 37 36 30 30  0a 20 20 20 20 72 6f 75  |76 57600.    rou|
000001d0  74 65 20 61 64 64 20 64  65 66 61 75 6c 74 20 61  |te add default a|
000001e0  78 30 20 5b 31 33 34 2e  38 34 2e 31 30 31 2e 32  |x0 [134.84.101.2|
000001f0  35 34 5d 20 31 0a 0a 20  53 70 65 63 69 66 79 69  |54] 1.. Specifyi|
00000200  6e 67 20 6f 75 74 70 75  74 20 66 69 6c 65 20 63  |ng output file c|
00000210  6f 6e 74 65 6e 74 73 20  77 69 74 68 69 6e 20 73  |ontents within s|
00000220  63 72 69 70 74 73 3a 0a  20 59 6f 75 20 63 61 6e  |cripts:. You can|
00000230  20 74 61 6b 65 20 6c 69  6e 65 73 20 66 72 6f 6d  | take lines from|
00000240  20 74 68 65 20 73 63 72  69 70 74 20 61 73 20 77  | the script as w|
00000250  65 6c 6c 20 61 73 20 66  72 6f 6d 20 61 6e 20 69  |ell as from an i|
00000260  6e 70 75 74 20 66 69 6c  65 2e 20 53 63 72 69 70  |nput file. Scrip|
00000270  74 0a 20 6c 69 6e 65 73  20 66 6f 6c 6c 6f 77 69  |t. lines followi|
00000280  6e 67 20 74 68 65 20 22  6d 61 6b 65 22 20 63 6f  |ng the "make" co|
00000290  6d 6d 61 6e 64 20 77 68  69 63 68 20 68 61 76 65  |mmand which have|
000002a0  20 61 20 22 2b 22 20 61  73 20 74 68 65 20 66 69  | a "+" as the fi|
000002b0  72 73 74 20 63 68 61 72  61 63 74 65 72 0a 20 77  |rst character. w|
000002c0  69 6c 6c 20 62 65 20 75  73 65 64 20 61 73 20 73  |ill be used as s|
000002d0  6f 75 72 63 65 20 6c 69  6e 65 73 20 66 6f 72 20  |ource lines for |
000002e0  74 68 65 20 6f 75 74 70  75 74 20 66 69 6c 65 20  |the output file |
000002f0  28 74 68 65 20 2b 20 63  68 61 72 61 63 74 65 72  |(the + character|
00000300  20 62 65 69 6e 67 0a 20  73 74 72 69 70 70 65 64  | being. stripped|
00000310  20 6f 66 66 29 2e 20 53  70 65 63 69 66 79 20 61  | off). Specify a|
00000320  6e 20 69 6e 70 75 74 20  66 69 6c 65 20 6f 66 20  |n input file of |
00000330  22 2d 22 20 74 6f 20 75  73 65 20 6f 6e 6c 79 20  |"-" to use only |
00000340  74 68 65 73 65 20 73 63  72 69 70 74 20 6c 69 6e  |these script lin|
00000350  65 73 2e 0a 20 49 66 20  79 6f 75 20 73 70 65 63  |es.. If you spec|
00000360  69 66 79 20 62 6f 74 68  20 61 20 72 65 61 6c 20  |ify both a real |
00000370  69 6e 70 75 74 20 66 69  6c 65 20 61 6e 64 20 2b  |input file and +|
00000380  20 6c 69 6e 65 73 2c 20  74 68 65 20 2b 20 6c 69  | lines, the + li|
00000390  6e 65 73 20 77 69 6c 6c  20 62 65 20 75 73 65 64  |nes will be used|
000003a0  0a 20 61 66 74 65 72 20  74 68 65 20 69 6e 70 75  |. after the inpu|
000003b0  74 20 66 69 6c 65 20 68  61 73 20 62 65 65 6e 20  |t file has been |
000003c0  70 72 6f 63 65 73 73 65  64 2e 0a 0a 20 43 6f 6d  |processed... Com|
000003d0  6d 65 6e 74 20 6c 69 6e  65 73 20 28 74 68 6f 73  |ment lines (thos|
000003e0  65 20 62 65 67 69 6e 6e  69 6e 67 20 77 69 74 68  |e beginning with|
000003f0  20 61 20 22 23 22 29 20  69 6e 20 74 68 65 20 73  | a "#") in the s|
00000400  6f 75 72 63 65 20 66 69  6c 65 20 61 72 65 20 6e  |ource file are n|
00000410  6f 74 0a 20 74 72 61 6e  73 66 65 72 72 65 64 20  |ot. transferred |
00000420  74 6f 20 74 68 65 20 6f  75 74 70 75 74 20 66 69  |to the output fi|
00000430  6c 65 2e 0a                                       |le..|
00000434