1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- arg fn . '(' cparms
- 'pipe (end ?) < 'fn' makefile',
- '| frlab GLOBALS:'||,
- '| drop',
- '| strip',
- '| var globals'
- cparms = cparms globals
- say ''
- say 'Compile options : 'cparms
- say ''
- if pos('REB',cparms) > 0 then do
- parse var cparms cp1 'REB' . ' ' cp2
- cparms = cp1||cp2
- pipe1=,
- 'pipe (end ?) < 'fn' makefile',
- '| nfind *'||,
- '| frlab TEXT:'||,
- '| r: tolab MODULE:'||,
- '| drop',
- '| o: fanout',
- '| chop before str /(/',
- '| statew',
- '| c: fanout',
- '| specs /Compiling / 1 w1-3 n / .../ n',
- '| cons'
- end
- else do
- pipe1=,
- 'pipe (end ?) < 'fn' makefile',
- '| nfind *'||,
- '| frlab TEXT:'||,
- '| r: tolab MODULE:'||,
- '| drop',
- '| o: fanout',
- '| specs w1 1 /C/ nw w3 nw write w1 1 /TEXT A/ nw',
- '| chop before str /(/',
- '| statew',
- '| change (57 66) / /0/',
- '| sort 1.8 d',
- '| uniq 1-17 singles',
- '| sort 1.8 d 64.2 d 57.2 d 60.2 d 66.8 d',
- '| uniq 1-8 first',
- '| locate 9.8 /C /',
- '| c: fanout',
- '| specs /Compiling / 1 w1-3 n / .../ n',
- '| cons'
- end
- pipe2= '?',
- 'r:',
- '| drop',
- '| specs w1 1',
- '| var module',
- '?',
- 'o:',
- '| specs w1 1',
- '| join * / /',
- '| var texts',
- '?',
- 'c:',
- '| specs /CC / 1 w1-3 n /(NOTERM 'cparms'/ nw',
- '| err: cms | cons',
- '?',
- 'err:',
- '| strip both',
- '| nfind 0'||,
- '| var err',
- '| specs /----> Errors found! RC=/ 1 1-* n',
- '| cons'
- pipe1 pipe2
- say ''
- if symbol('err') = 'VAR' & err ^= 0 then do
- say 'Errors found in source files - link aborted! RC = 'err
- exit err
- end
- say 'Generating module 'module
- 'pipe cms cmod' fn texts' DMSCSL | > 'fn' LINK A'
- 'set cmstype ht'
- 'state 'fn' LINK A'
- rcc = rc
- 'set cmstype rt'
- if rcc = 0 then do
- say ''
- say 'ERRORS discovered during linking!'
- say 'See: 'fn' LINK A for more info'
- end
- exit rc
- error:
- say 'Error in REXX detected!'
- Say 'Syntax error on line' Sigl':' Sourceline(Sigl)
- Say 'Error was:' Errortext(RC)
- return rc
|