home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / MCOMM530.ZIP / TCLIBS.BAT < prev    next >
DOS Batch File  |  1990-06-22  |  2KB  |  36 lines

  1. echo off
  2. cls
  3. echo This batch file converts all the COMM_? composite libraries to Turbo C
  4. echo format.  The COMM_? libraries and the TC_X? libraries must be in the
  5. echo current directory or passed as an argument to the batch file.  TLIB.EXE,
  6. echo Turbo's LIB program, must be in the path.
  7. echo   Ex: tclibs c:\turboc\lib\
  8. echo In the above example both the COMM and TC libs will be expected to be in
  9. echo the c:\turboc\lib directory.  The trailing backslash is required.
  10. echo  
  11. echo Press control-C to abort the batch file or,
  12. pause
  13. echo on
  14. if not exist %1tc_xs.lib goto medium
  15. if exist %1comm_s.lib tlib %1comm_s /C -pushpop -fpushpop -int14cts -watchdog -allocrb +%1tc_xs.lib,nul
  16. if exist %1comm_s.bak del %1comm_s.bak
  17. :medium
  18. if not exist %1tc_xm.lib goto compact
  19. if exist %1comm_m.lib tlib %1comm_m /C -pushpop -fpushpop -int14cts -watchdog -allocrb +%1tc_xm.lib,nul
  20. if exist %1comm_m.bak del %1comm_m.bak
  21. :compact
  22. if not exist %1tc_xc.lib goto large
  23. if exist %1comm_c.lib tlib %1comm_c /C -pushpop -fpushpop -int14cts -watchdog -allocrb +%1tc_xc.lib,nul
  24. if exist %1comm_c.bak del %1comm_c.bak
  25. :large
  26. if not exist %1tc_xl.lib goto finished
  27. if exist %1comm_l.lib tlib %1comm_l /C -pushpop -fpushpop -int14cts -watchdog -allocrb +%1tc_xl.lib,nul
  28. if exist %1comm_l.bak del %1comm_l.bak
  29. :huge
  30. if not exist %1tc_xl.lib goto finished
  31. if not exist %1comm_l.lib goto finished
  32. copy %1comm_l.lib %1comm_h.lib
  33. tlib %1comm_h /C @mktccomh.rsp
  34. if exist %1comm_h.bak del %1comm_h.bak
  35. :finished
  36.