home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 2.ddi / TC / MVAPAPP.BAT < prev    next >
Encoding:
DOS Batch File  |  1989-04-18  |  3.2 KB  |  110 lines

  1. echo off
  2.  
  3. rem check syntax
  4. if XX%1==XX goto usage
  5.  
  6. if XX%2==XX goto usage
  7. if  %2==*   goto df_tcd_action
  8. echo ---------- Turbo c directory is -- %2 --
  9. if not exist %2\*.* goto bad_name
  10. echo TCDIR=%2> mct.mac
  11. goto chk_3
  12.  
  13. :df_tcd_action
  14. echo .
  15. echo ++++++++++ You have to specify the Turbo C directory path 
  16. goto usage 
  17.  
  18. :chk_3
  19. if XX%3==XX goto df_rtd_msg
  20. if  %3==*   goto df_rtd_msg
  21. echo ---------- r-tree directory is -- %3 --
  22. if not exist %3\*.* goto bad_name
  23. echo RTREE=%3>> mct.mac
  24. goto chk_4
  25.  
  26. :df_rtd_msg
  27. echo .
  28. echo Default r-tree directory in the 'make' files will be used
  29.  
  30. :chk_4
  31. if XX%4==XX goto tc15msg
  32. echo .
  33. echo ---------------------------------------------------------
  34. echo This installation procedure assumes Turbo C 1.0 is in use
  35. echo ---------------------------------------------------------
  36. echo .
  37. echo TC10=x>> mct.mac
  38. goto install
  39.  
  40. :tc15msg
  41. echo .
  42. echo ---------------------------------------------------------
  43. echo This installation procedure assumes Turbo C 1.5 or later
  44. echo ---------------------------------------------------------
  45. echo .
  46. goto install
  47.  
  48. :bad_name
  49. echo ++++++++++ And I can't find it!!!
  50. echo .
  51. goto usage
  52.  
  53. :install
  54. pause ===== Now go to make the libraries =====
  55.  
  56. if %1==S goto small
  57. if %1==s goto small
  58. if %1==L goto large
  59. if %1==l goto large
  60.  
  61. echo ************
  62. echo SYNTAX ERROR
  63. echo ************
  64.  
  65. :usage
  66. echo . Program to build c-tree library, utilities, and sample programs
  67. echo .                      +---------+------+-------+--------+-----+  
  68. echo "                      |         | S or | Turbo |        |     |       "
  69. echo "                      | MVAPAPP |      |   C   | r-tree | [x] |       "
  70. echo "                      |         |      | path- | path   |     |       "
  71. echo "                      |         | L    | name  |        |     |       "
  72. echo .                      +---------+------+-------+--------+-----+  
  73. echo .              examples:
  74. echo .                        MVAPAPP   L    e:\turboc  e:\rt11d2   x
  75. echo .                        MVAPAPP   L    e:\tc
  76. echo .
  77. echo . where S = small and L = large  memory model
  78. echo .       Turbo C path - if Turbo C is not in the same drive, add drive name
  79. echo .       r-tree path  - r-tree main directory
  80. echo .       x            - optional.  If x is NOT entered, Turbo C v1.5 or later
  81. echo .                      will be used, otherwise v1.0 setting will be selected.
  82. echo .       *            - ===  signifies default value will be used  ===
  83. echo .
  84. echo .......................................................................
  85. echo          The libary and object files are created in directory nAPP.vap
  86. echo                       (eg. LAPP.vap for large model)
  87. echo .......................................................................
  88. goto done
  89.  
  90. :small
  91. ren ..\ctcomm.h ctcomm.sav
  92. copy ..\novell\ctcomm.h ../v
  93. if not exist SAPP.vap\*.* md SAPP.vap
  94. %2\make -DAM=small -DMM=s -fmvapapp.mak
  95. goto restore
  96.  
  97. :large
  98. ren ..\ctcomm.h ctcomm.sav
  99. copy ..\novell\ctcomm.h ../v
  100. if not exist LAPP.vap\*.* md LAPP.vap
  101. %2\make -DAM=large -DMM=l -fmvapapp.mak
  102. goto restore
  103.  
  104. :restore
  105. del ..\ctcomm.h
  106. ren ..\ctcomm.sav ctcomm.h
  107.  
  108. :done
  109. REM if exist mct.mac del mct.mac
  110.