home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
misc_utils
/
eco
/
doeco.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-10-27
|
1KB
|
39 lines
/*
** This program is an alternate way to create ECO to "Execute ECO.C"
** It allows ARexx user to compile eco.c to produce both eco.3 or
** eco.7, depending on input parameters. No you can use ECO.LMK
** anyway, if you have LMK or a MAKE program.
**
** DOECO [ ? | EXTRA ] where ? display the help for DOECO
** none do ECO
** EXTRA do ECOX
*/
Signal on BREAK_C
Arg parm .
cmp = "lc:lc -cuwsf -Heco.sym -O -v"
lnk = "lc:blink lib:cres.o"
opt = "LIB lib:lc.lib SD SC ND VERBOSE"
Select
When parm = '' Then Do; eco = 'eco' ; dopt = '' ; End
When parm = 'EXTRA' Then Do; eco = 'ecox'; dopt = '-dEXTRA'; End
Otherwise Do
Say "
DOECO
[ ? | EXTRA ]"
Say "- No parameters to create ECO"
Say "-
EXTRA
to create ECOX"
Exit
End
End
Say "Creating
"||eco||"
..."
Address Command cmp dopt "eco.c"
If rc = 0 Then Address Command lnk eco||'.o TO' eco opt
Else Say "Error code" rc "from compiler"
Exit
BREAK_C: Say "
User interrupt detected
"; Exit