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

  1. @echo off
  2. rem btree installation batch file-----------------------------------------------
  3. rem #ident    "install.bat    1.1 - 89/07/03"
  4.  
  5. rem check if blkio installed----------------------------------------------------
  6. if exist \tc\include\blkio.h goto blkio
  7. echo The blkio library must be installed first.
  8. goto end
  9. :blkio
  10.  
  11. rem extract the reference manual------------------------------------------------
  12. if not exist btree.man goto man
  13. echo btree.man exists.  ^c to exit, any other key to continue.
  14. pause
  15. :man
  16. if not exist tmp goto tmp
  17. echo tmp exists.  ^c to exit, any other key to continue.
  18. pause
  19. :tmp
  20. echo on
  21. copy btree.h/a+btclose.c+btcreate.c+btcursor.c+btdelcur.c+btdelete.c+btfirst.c tmp
  22. type tmp | manx -c > btree.man
  23. copy btgetcur.c/a+btgetk.c+btgetlck.c+btinsert.c+btkeycnt.c+btkeysiz.c tmp
  24. type tmp | manx -c >> btree.man
  25. copy btlast.c/a+btlock.c+btnext.c+btopen.c+btprev.c+btsearch.c tmp
  26. type tmp | manx -c >> btree.man
  27. copy btsetbuf.c/a+btsetcur.c+btsetvbu.c+btsync.c tmp
  28. type tmp | manx -c >> btree.man
  29. del tmp
  30. @echo off
  31.  
  32. rem compile all btree source files----------------------------------------------
  33. echo on
  34. tcc -O -c -mh btclose.c  btcreate.c btcursor.c btdelcur.c btdelete.c btfirst.c
  35. tcc -O -c -mh btgetcur.c btgetk.c   btgetlck.c btinsert.c btkeycnt.c btkeysiz.c
  36. tcc -O -c -mh btlast.c   btlock.c   btnext.c   btopen.c   btprev.c   btsearch.c
  37. tcc -O -c -mh btsetbuf.c btsetcur.c btsetvbu.c btsync.c
  38. tcc -O -c -mh btops.c    dgops.c    kyops.c    ndops.c
  39. @echo off
  40.  
  41. rem build the btree library archive---------------------------------------------
  42. echo on
  43. tlib btree @btree.rsp
  44. @echo off
  45.  
  46. rem install the btree library---------------------------------------------------
  47. if not exist \tc\lib\btree.lib goto lib
  48. echo \tc\lib\btree.lib exists.  ^c to exit, any other key to continue.
  49. pause
  50. :lib
  51. echo on
  52. copy btree.lib \tc\lib\btree.lib
  53. @echo off
  54.  
  55. if not exist \tc\include\btree.h goto h
  56. echo \tc\include\btree.h exists.  ^c to exit, any other key to continue.
  57. pause
  58. :h
  59. echo on
  60. copy btree.h \tc\include\btree.h
  61. @echo off
  62.  
  63. rem end of btree batch file-----------------------------------------------------
  64. :end
  65.