home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / turbo_c / tc2pat2.zip / PATPRNTF.BAT < prev    next >
DOS Batch File  |  1988-10-06  |  1KB  |  59 lines

  1. echo off
  2. echo 
  3. echo This batch file will install the replacement .OBJ modules to fix
  4. echo the printf() bug with the %.0f format specification.  
  5. echo 
  6. echo Syntax:  PATPRNTF [LIB-directory]
  7. echo Example: PATPRNTF C:\TC\LIB\
  8. echo 
  9. echo If you specify a path name, the last '\' is required.  If no
  10. echo path name is specified, the .LIB files in the current 
  11. echo directory are used.  
  12. echo 
  13. echo TLIB.EXE must be in the current directory or on your DOS exec path.
  14. echo 
  15. echo Hit any key to patch printf, ^C to exit
  16. echo 
  17. pause
  18.  
  19. if not exist %1*.lib goto HELP
  20.  
  21. copy small.obj xcvt.obj
  22. tlib /E /0 %1maths -+xcvt
  23. if errorlevel 1 goto ERROR
  24. del xcvt.obj
  25.  
  26. copy compact.obj xcvt.obj
  27. tlib /E /0 %1mathc -+xcvt
  28. if errorlevel 1 goto ERROR
  29. del xcvt.obj
  30.  
  31. copy medium.obj xcvt.obj
  32. tlib /E /0 %1mathm -+xcvt
  33. if errorlevel 1 goto ERROR
  34. del xcvt.obj
  35.  
  36. copy large.obj xcvt.obj
  37. tlib /E /0 %1mathl -+xcvt
  38. if errorlevel 1 goto ERROR
  39. del xcvt.obj
  40.  
  41. copy huge.obj xcvt.obj
  42. tlib /E /0 %1mathh -+xcvt
  43. if errorlevel 1 goto ERROR
  44. del xcvt.obj
  45.  
  46. if exist %1*.bak del %1*.bak
  47. goto DONE
  48.  
  49. :ERROR
  50. echo ERROR adding module to library
  51. echo installation terminated
  52. goto DONE
  53.  
  54. :HELP
  55. echo 
  56. echo ERROR: invalid path specification
  57.  
  58. :DONE
  59.