home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff391.lzh / Eco / doeco.rexx < prev    next >
OS/2 REXX Batch file  |  1990-10-27  |  1KB  |  39 lines

  1. /*
  2. **  This program is an alternate way to create ECO to "Execute ECO.C"
  3. **  It allows ARexx user to compile eco.c to produce both eco.3 or
  4. **  eco.7, depending on input parameters. No you can use ECO.LMK
  5. **  anyway, if you have LMK or a MAKE program.
  6. **
  7. **  DOECO [ ? | EXTRA ]       where  ?      display the help for DOECO
  8. **                                   none   do ECO
  9. **                                   EXTRA  do ECOX
  10. */
  11.  
  12.  Signal on BREAK_C
  13.  
  14.  Arg parm .
  15.  
  16.  cmp = "lc:lc -cuwsf -Heco.sym -O -v"
  17.  lnk = "lc:blink lib:cres.o"
  18.  opt = "LIB lib:lc.lib SD SC ND VERBOSE"
  19.  
  20.  Select
  21.    When parm = ''      Then Do; eco = 'eco' ; dopt = ''       ; End
  22.    When parm = 'EXTRA' Then Do; eco = 'ecox'; dopt = '-dEXTRA'; End
  23.    Otherwise Do
  24.      Say "DOECO [ ? | EXTRA ]"
  25.      Say "- No parameters to create ECO"
  26.      Say "- EXTRA to create ECOX"
  27.      Exit
  28.    End
  29.  End
  30.  
  31.  Say "Creating "||eco||"..."
  32.  Address Command cmp dopt "eco.c"
  33.  If rc = 0 Then Address Command lnk eco||'.o TO' eco opt
  34.            Else Say "Error code" rc "from compiler"
  35.  
  36.  Exit
  37.  
  38.  BREAK_C: Say "User interrupt detected"; Exit
  39.