Fullc_6.bat 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. @echo off
  2. REM ****************************************************************************
  3. REM
  4. REM Author : Malcolm Smith, MJ freelancing
  5. REM http://www.mjfreelancing.com
  6. REM
  7. REM Pre-requisites: \Lib\Protocols\ZLib must contain the ZLIB OBJ files
  8. REM \Lib\System contains the project / pas/ res files for IndySystem
  9. REM \Lib\Core contains the project / pas/ res files for IndyCore
  10. REM \Lib\Protocols contains the project / pas/ res files for IndyProtocols
  11. REM
  12. REM ****************************************************************************
  13. computil SetupC6
  14. if exist setenv.bat call setenv.bat
  15. if exist setenv.bat del setenv.bat > nul
  16. if (%NDC6%)==() goto enderror
  17. if not exist %NDC6%\bin\dcc32.exe goto endnocompiler
  18. if not exist ..\C6\*.* md ..\C6
  19. if exist ..\C6\*.* call clean.bat ..\C6\
  20. cd System
  21. copy IndySystem60.dpk ..\..\C6 > nul
  22. copy *IndySystem60.cfg1 ..\..\C6 > nul
  23. copy *IndySystem60.cfg2 ..\..\C6 > nul
  24. copy *.res ..\..\C6 > nul
  25. copy *.pas ..\..\C6 > nul
  26. copy *.inc ..\..\C6 > nul
  27. cd ..\..\C6
  28. REM ************************************************************
  29. REM Compile IndySystem60 - Round 1
  30. REM ************************************************************
  31. copy IndySystem60.cfg1 IndySystem60.cfg > nul
  32. %NDC6%\bin\dcc32.exe /B IndySystem60.dpk
  33. if errorlevel 1 goto enderror
  34. REM ************************************************************
  35. REM Compile IndySystem60 - Round 2
  36. REM ************************************************************
  37. del IndySystem60.cfg > nul
  38. copy IndySystem60.cfg2 IndySystem60.cfg > nul
  39. %NDC6%\bin\dcc32.exe /B IndySystem60.dpk
  40. if errorlevel 1 goto enderror
  41. REM ************************************************************
  42. REM Correct the LSP file (quote everything)
  43. REM ************************************************************
  44. ..\Lib\LspFix.exe IndySystem60.lsp
  45. %NDC6%\bin\tlib.exe IndySystem60.lib @IndySystem60.lsp /P64
  46. if errorlevel 1 goto enderror
  47. REM ************************************************************
  48. REM Prepare to copy all CORE related files
  49. REM ************************************************************
  50. cd ..\Lib\Core
  51. copy *IndyCore60.dpk ..\..\C6 > nul
  52. copy *IndyCore60.cfg1 ..\..\C6 > nul
  53. copy *IndyCore60.cfg2 ..\..\C6 > nul
  54. copy *.res ..\..\C6 > nul
  55. copy *.pas ..\..\C6 > nul
  56. copy *.dcr ..\..\C6 > nul
  57. copy *.inc ..\..\C6 > nul
  58. cd ..\..\C6
  59. REM ************************************************************
  60. REM Compile IndyCore60 - Round 1
  61. REM ************************************************************
  62. copy IndyCore60.cfg1 IndyCore60.cfg > nul
  63. %NDC6%\bin\dcc32.exe /B IndyCore60.dpk
  64. if errorlevel 1 goto enderror
  65. REM ************************************************************
  66. REM Compile IndyCore60 - Round 2
  67. REM ************************************************************
  68. del IndyCore60.cfg > nul
  69. copy IndyCore60.cfg2 IndyCore60.cfg > nul
  70. %NDC6%\bin\dcc32.exe /B IndyCore60.dpk
  71. if errorlevel 1 goto enderror
  72. ..\Lib\LspFix.exe IndyCore60.lsp
  73. %NDC6%\bin\tlib.exe IndyCore60.lib @IndyCore60.lsp /P64
  74. if errorlevel 1 goto enderror
  75. REM ************************************************************
  76. REM Compile dclIndyCore60 - Round 1
  77. REM ************************************************************
  78. copy dclIndyCore60.cfg1 dclIndyCore60.cfg > nul
  79. %NDC6%\bin\dcc32.exe /B dclIndyCore60.dpk
  80. if errorlevel 1 goto enderror
  81. REM ************************************************************
  82. REM Compile dclIndyCore60 - Round 2
  83. REM ************************************************************
  84. del dclIndyCore60.cfg > nul
  85. copy dclIndyCore60.cfg2 dclIndyCore60.cfg > nul
  86. %NDC6%\bin\dcc32.exe /B dclIndyCore60.dpk
  87. if errorlevel 1 goto enderror
  88. rem ..\Lib\LspFix.exe dclIndyCore60.lsp
  89. rem %NDC6%\bin\tlib.exe dclIndyCore60.lib @dclIndyCore60.lsp /P64
  90. rem if errorlevel 1 goto enderror
  91. REM ************************************************************
  92. REM Prepare to copy all PROTOCOLS related files
  93. REM ************************************************************
  94. cd ..\Lib\Protocols
  95. copy zlib\*.obj ..\..\C6 > nul
  96. copy *IndyProtocols60.dpk ..\..\C6 > nul
  97. copy *IndyProtocols60.cfg1 ..\..\C6 > nul
  98. copy *IndyProtocols60.cfg2 ..\..\C6 > nul
  99. copy *.res ..\..\C6 > nul
  100. copy *.pas ..\..\C6 > nul
  101. copy *.dcr ..\..\C6 > nul
  102. copy *.inc ..\..\C6 > nul
  103. cd ..\..\C6
  104. REM ************************************************************
  105. REM Compile IndyProtocols60 - Round 1
  106. REM ************************************************************
  107. copy IndyProtocols60.cfg1 IndyProtocols60.cfg > nul
  108. %NDC6%\bin\dcc32.exe /B IndyProtocols60.dpk
  109. if errorlevel 1 goto enderror
  110. REM ************************************************************
  111. REM Compile IndyProtocols60 - Round 2
  112. REM ************************************************************
  113. del IndyProtocols60.cfg > nul
  114. copy IndyProtocols60.cfg2 IndyProtocols60.cfg > nul
  115. %NDC6%\bin\dcc32.exe /B IndyProtocols60.dpk
  116. if errorlevel 1 goto enderror
  117. ..\Lib\LspFix.exe IndyProtocols60.lsp
  118. %NDC6%\bin\tlib.exe IndyProtocols60.lib @IndyProtocols60.lsp /P64
  119. if errorlevel 1 goto enderror
  120. REM ************************************************************
  121. REM Compile dclIndyProtocols60 - Round 1
  122. REM ************************************************************
  123. copy dclIndyProtocols60.cfg1 dclIndyProtocols60.cfg > nul
  124. %NDC6%\bin\dcc32.exe /B dclIndyProtocols60.dpk
  125. if errorlevel 1 goto enderror
  126. REM ************************************************************
  127. REM Compile dclIndyProtocols60 - Round 2
  128. REM ************************************************************
  129. del dclIndyProtocols60.cfg > nul
  130. copy dclIndyProtocols60.cfg2 dclIndyProtocols60.cfg > nul
  131. %NDC6%\bin\dcc32.exe /B dclIndyProtocols60.dpk
  132. if errorlevel 1 goto enderror
  133. REM ************************************************************
  134. REM Set all files we want to keep with the R attribute then
  135. REM delete the rest before restoring the attribute
  136. REM ************************************************************
  137. attrib +r Id*.hpp
  138. attrib +r *.bpl
  139. attrib +r Indy*.bpi
  140. attrib +r Indy*.lib
  141. attrib +r indysystem60.res
  142. attrib +r indycore60.res
  143. attrib +r indyprotocols60.res
  144. del /Q /A:-R *.* > nul
  145. attrib -r Id*.hpp
  146. attrib -r *.bpl
  147. attrib -r Indy*.bpi
  148. attrib -r Indy*.lib
  149. attrib -r indysystem60.res
  150. attrib -r indycore60.res
  151. attrib -r indyprotocols60.res
  152. goto endok
  153. :enderror
  154. echo Error!
  155. pause
  156. goto endok
  157. :endnocompiler
  158. echo C++Builder 6 Compiler Not Present!
  159. goto endok
  160. :endok
  161. rem call clean
  162. cd ..\Lib