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

  1. @echo off
  2. rem cbase installation batch file-----------------------------------------------
  3. rem #ident    "install.bat    1.1 - 89/08/31"
  4.  
  5. rem check if underlying libraries 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. if exist \tc\include\lseq.h goto lseq
  11. echo The lseq library must be installed first.
  12. goto end
  13. :lseq
  14. if exist \tc\include\btree.h goto btree
  15. echo The btree library must be installed first.
  16. goto end
  17. :btree
  18.  
  19. rem extract the reference manual------------------------------------------------
  20. if not exist cbase.man goto man
  21. echo cbase.man exists.  ^c to exit, any other key to continue.
  22. pause
  23. :man
  24. if not exist tmp goto tmp
  25. echo tmp exists.  ^c to exit, any other key to continue.
  26. pause
  27. :tmp
  28. echo on
  29. copy cbase.h/a+cbclose.c+cbcreate.c+cbdelcur.c+cbgetkcu.c+cbgetlck.c tmp
  30. type tmp | manx -c > cbase.man
  31. copy cbgetr.c/a+cbgetrcu.c+cbgetrf.c+cbinscur.c+cbinsert.c tmp
  32. type tmp | manx -c >> cbase.man
  33. copy cbkcurso.c/a+cbkeyali.c+cbkeyfir.c+cbkeylas.c+cbkeynex.c+cbkeypre.c tmp
  34. type tmp | manx -c >> cbase.man
  35. copy cbkeysrc.c/a+cblock.c+cbopen.c+cbputr.c+cbrcurso.c+cbreccnt.c tmp
  36. type tmp | manx -c >> cbase.man
  37. copy cbrecfir.c/a+cbreclas.c+cbrecnex.c+cbrecpre.c+cbrecsiz.c+cbsetkcu.c tmp
  38. type tmp | manx -c >> cbase.man
  39. copy cbsetrcu.c/a+cbsync.c tmp
  40. type tmp | manx -c >> cbase.man
  41. del tmp
  42. @echo off
  43.  
  44. rem compile all cbase source files----------------------------------------------
  45. echo on
  46. tcc -O -c -mh cbclose.c  cbcreate.c cbdelcur.c cbgetkcu.c cbgetlck.c
  47. tcc -O -c -mh cbgetr.c   cbgetrcu.c cbgetrf.c  cbinscur.c cbinsert.c
  48. tcc -O -c -mh cbkcurso.c cbkeyali.c cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c
  49. tcc -O -c -mh cbkeysrc.c cblock.c   cbopen.c   cbputr.c   cbrcurso.c cbreccnt.c
  50. tcc -O -c -mh cbrecfir.c cbreclas.c cbrecnex.c cbrecpre.c cbrecsiz.c cbsetkcu.c
  51. tcc -O -c -mh cbsetrcu.c cbsync.c
  52. tcc -O -c -mh cbcmp.c    cbops.c
  53. @echo off
  54.  
  55. rem build the cbase library archive---------------------------------------------
  56. echo on
  57. tlib cbase @cbase.rsp
  58. @echo off
  59.  
  60. rem install the cbase library---------------------------------------------------
  61. if not exist \tc\lib\cbase.lib goto lib
  62. echo \tc\lib\cbase.lib exists.  ^c to exit, any other key to continue.
  63. pause
  64. :lib
  65. echo on
  66. copy cbase.lib \tc\lib\cbase.lib
  67. @echo off
  68.  
  69. if not exist \tc\include\cbase.h goto h
  70. echo \tc\include\cbase.h exists.  ^c to exit, any other key to continue.
  71. pause
  72. :h
  73. echo on
  74. copy cbase.h \tc\include\cbase.h
  75. @echo off
  76.  
  77. rem compile example program-----------------------------------------------------
  78. echo on
  79. tcc -O -mh cbase.lib btree.lib lseq.lib blkio.lib rolo.c
  80. @echo off
  81.  
  82. rem end of cbase batch file-----------------------------------------------------
  83. :end
  84.