Initial revision
[ssr] / StraySrc / Libraries / BAS / src / scripts / crunchit,feb
1 |
2 | crunchit
3 |
4 | Build a crunched BAS
5 |
6 | © 1998 Straylight
7 |
8
9 Set Alias$x echo %%*0|m%%*0
10
11 | --- Initial processing ---
12 |
13 | I want to do some preprocessing with `sed', which means that BAS has
14 | got to be converted to text.
15
16 exec scripts.execit
17 basic -load b.bas
18 | saves work.bastext as text and work.basconst
19 x sed -f scripts.preproc -f work.basconst work.bastext >work.stage-1
20
21 | --- Crunching ---
22 |
23 | Now I've got to convert the text file back to BASIC binary format and
24 | compress it.
25
26 basic -load work.stage-1
27 | saves work.stage-2 back as basic
28 x ccrunch -r2 -xscripts.exports work.stage-2 work.stage-3
29
30 | --- Set up the magic number ---
31 |
32 | I now need to set the length word in the header, and word-align the
33 | result.
34
35 basic -load work.stage-3
36 | saves bc.bas
37
38 Unset Alias$x