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

  1. @echo off
  2. rem lseq 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 lseq.man goto man
  13. echo lseq.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 lseq.h/a+lsclose.c+lscreate.c+lscursor.c+lsdelcur.c+lsfirst.c+lsgetcur.c tmp
  22. type tmp | manx -c > lseq.man
  23. copy lsgetlck.c/a+lsgetr.c+lsgetrf.c+lsinscur.c+lsinsert.c+lslast.c tmp
  24. type tmp | manx -c >> lseq.man
  25. copy lslock.c/a+lsnext.c+lsopen.c+lsprev.c+lsputr.c+lsputrf.c tmp
  26. type tmp | manx -c >> lseq.man
  27. copy lsreccnt.c/a+lsrecsiz.c+lssearch.c+lssetbuf.c+lssetcur.c+lssetvbu.c tmp
  28. type tmp | manx -c >> lseq.man
  29. copy lssync.c/a tmp
  30. type tmp | manx -c >> lseq.man
  31. del tmp
  32. @echo off
  33.  
  34. rem compile all lseq source files-----------------------------------------------
  35. echo on
  36. tcc -O -c -mh lsclose.c  lscreate.c lscursor.c lsdelcur.c lsfirst.c  lsgetcur.c
  37. tcc -O -c -mh lsgetlck.c lsgetr.c   lsgetrf.c  lsinscur.c lsinsert.c lslast.c
  38. tcc -O -c -mh lslock.c   lsnext.c   lsopen.c   lsprev.c   lsputr.c   lsputrf.c
  39. tcc -O -c -mh lsreccnt.c lsrecsiz.c lssearch.c lssetbuf.c lssetcur.c lssetvbu.c
  40. tcc -O -c -mh lssync.c
  41. tcc -O -c -mh dgops.c    lsops.c    rcops.c
  42. @echo off
  43.  
  44. rem build the lseq library archive----------------------------------------------
  45. echo on
  46. tlib lseq @lseq.rsp
  47. @echo off
  48.  
  49. rem install the lseq library----------------------------------------------------
  50. if not exist \tc\lib\lseq.lib goto lib
  51. echo \tc\lib\lseq.lib exists.  ^c to exit, any other key to continue.
  52. pause
  53. :lib
  54. echo on
  55. copy lseq.lib \tc\lib\lseq.lib
  56. @echo off
  57.  
  58. if not exist \tc\include\lseq.h goto h
  59. echo \tc\include\lseq.h exists.  ^c to exit, any other key to continue.
  60. pause
  61. :h
  62. echo on
  63. copy lseq.h \tc\include\lseq.h
  64. @echo off
  65.  
  66. rem end of lseq batch file------------------------------------------------------
  67. :end
  68.