home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / DOOG / CBASE09.ZIP / BLKIO10.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-08-30  |  3KB  |  80 lines

  1. @echo off
  2. rem blkio installation batch file-----------------------------------------------
  3. rem #ident    "install.bat    1.2 - 89/08/29"
  4.  
  5. rem ----------------------------------------------------------------------------
  6. rem This batch file is written for use with Borland Turbo C.  To convert it for
  7. rem use with another compiler, make the following changes:
  8. rem      1. Replace \tc\include with the include directory used by the
  9. rem         new compiler.
  10. rem      2. Replace \tc\lib with the library directory used by the new
  11. rem         compiler.
  12. rem      3. Replace tcc with the command to invoke the compiler being used,
  13. rem         replacing the switches also, if necessary.  -O is the optimize
  14. rem         option and -c means compile but don't link.  -m_ specifies the
  15. rem         desired memory model, h here for huge.
  16. rem      4. The command to build the library archive from the object modules
  17. rem         may vary more drastically.  Turbo C used the tlib command with
  18. rem         what Borland refers to as a response file.  This response file,
  19. rem         blkio.rsp, contains a list of all the object modules in the library.
  20. rem ----------------------------------------------------------------------------
  21.  
  22. rem install boolean header file-------------------------------------------------
  23. rem
  24. if not exist \tc\include\bool.h goto bool
  25. echo \tc\include\bool.h exists.  ^c to exit, any other key to continue.
  26. pause
  27. :bool
  28. echo on
  29. copy bool.h \tc\include\bool.h
  30. @echo off
  31.  
  32. rem extract the reference manual------------------------------------------------
  33. if not exist blkio.man goto man
  34. echo blkio.man exists.  ^c to exit, any other key to continue.
  35. pause
  36. :man
  37. if not exist tmp goto tmp
  38. echo tmp exists.  ^c to exit, any other key to continue.
  39. pause
  40. :tmp
  41. echo on
  42. copy blkio.h/a+bclose.c+bexit.c+bflpop.c+bflpush.c+bflush.c+bgetb.c tmp
  43. type tmp | manx -c > blkio.man
  44. copy bgetbf.c/a+bgeth.c+bgethf.c+bopen.c+bputb.c+bputbf.c tmp
  45. type tmp | manx -c >> blkio.man
  46. copy bputh.c/a+bputhf.c+bsetbuf.c+bsetvbuf.c+bsync.c+lockb.c tmp
  47. type tmp | manx -c >> blkio.man
  48. del tmp
  49. @echo off
  50.  
  51. rem compile all blkio source files----------------------------------------------
  52. echo on
  53. tcc -O -c -mh bclose.c   bexit.c    bflpop.c   bflpush.c  bflush.c   bgetb.c
  54. tcc -O -c -mh bgetbf.c   bgeth.c    bgethf.c   bopen.c    bputb.c    bputbf.c
  55. tcc -O -c -mh bputh.c    bputhf.c   bsetbuf.c  bsetvbuf.c bsync.c    lockb.c
  56. tcc -O -c -mh bops.c     buops.c    btmp.c
  57. @echo off
  58.  
  59. rem build the blkio library archive---------------------------------------------
  60. echo on
  61. tlib blkio @blkio.rsp
  62. @echo off
  63.  
  64. rem install the blkio library---------------------------------------------------
  65. if not exist \tc\lib\blkio.lib goto lib
  66. echo \tc\lib\blkio.lib exists.  ^c to exit, any other key to continue.
  67. pause
  68. :lib
  69. echo on
  70. copy blkio.lib \tc\lib\blkio.lib
  71. @echo off
  72.  
  73. if not exist \tc\include\blkio.h goto h
  74. echo \tc\include\blkio.h exists.  ^c to exit, any other key to continue.
  75. pause
  76. :h
  77. echo on
  78. copy blkio.h \tc\include\blkio.h
  79. @echo off
  80.