home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / cbase.zip / CBASE10B.ZIP / CBASE.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-11-08  |  3KB  |  75 lines

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