Fulld_2007.bat 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @echo off
  2. if (%1)==() goto test_command
  3. if (%1)==(start) goto start
  4. goto endok
  5. :test_command
  6. if (%COMSPEC%)==() goto no_command
  7. %COMSPEC% /E:9216 /C %0 start %1 %2 %3
  8. goto endok
  9. :no_command
  10. echo No Command Interpreter found
  11. goto endok
  12. :start
  13. echo Start
  14. call clean.bat
  15. computil SetupD11
  16. if exist setenv.bat call setenv.bat
  17. if not exist ..\D11\*.* md ..\D11 >nul
  18. if exist ..\D11\*.* call clean.bat ..\D11\
  19. if (%NDD11%)==() goto enderror
  20. if (%NDWINSYS%)==() goto enderror
  21. ECHO ****************
  22. ECHO Compile System
  23. ECHO ****************
  24. CD System
  25. %NDD11%\Bin\dcc32.exe IndySystem110.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D11 -$d-l-n+p+r-s-t-w- %2 %3 %4
  26. copy *110.bpl ..\..\D11 >nul
  27. copy *110.dcp ..\..\D11 >nul
  28. copy *.hpp ..\..\D11 >nul
  29. if errorlevel 1 goto enderror
  30. copy ..\..\D11\IndySystem110.bpl %NDWINSYS% >nul
  31. CD ..
  32. ECHO **************
  33. ECHO Compile Core
  34. ECHO **************
  35. CD Core
  36. %NDD11%\Bin\dcc32.exe IndyCore110.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D11 /U..\..\D11 -$d-l-n+p+r-s-t-w- %2 %3 %4
  37. if errorlevel 1 goto enderror
  38. %NDD11%\Bin\dcc32.exe dclIndyCore110.dpk /Oobjs /DBCB /m /h /w /N..\..\D11 /U..\..\D11 -$d-l-n+p+r-s-t-w- %2 %3 %4
  39. if errorlevel 1 goto enderror
  40. copy *110.bpl ..\..\D11 >nul
  41. copy *110.dcp ..\..\D11 >nul
  42. copy *.hpp ..\..\D11 >nul
  43. copy ..\..\D11\IndyCore110.bpl %NDWINSYS% >nul
  44. copy ..\..\D11\dclIndyCore110.bpl %NDWINSYS% >nul
  45. CD ..
  46. ECHO *******************
  47. ECHO Compile Protocols
  48. ECHO *******************
  49. CD Protocols
  50. ECHO ************************
  51. ECHO IdCompressionIntercept
  52. ECHO ************************
  53. %NDD11%\Bin\dcc32.exe -DBCB -B -M -JPHNE -N..\..\D11 /U..\..\D11 -H -W -Z IdCompressionIntercept.pas -$d-l-
  54. if errorlevel 1 goto enderror
  55. %NDD11%\Bin\dcc32.exe IndyProtocols110.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D11 /U..\..\D11 -$d-l-n+p+r-s-t-w- %2 %3 %4
  56. if errorlevel 1 goto enderror
  57. %NDD11%\Bin\dcc32.exe dclIndyProtocols110.dpk /Oobjs /DBCB /m /h /w /N..\..\D11 /U..\..\D11 -$d-l-n+p+r-s-t-w- %2 %3 %4
  58. if errorlevel 1 goto enderror
  59. copy *110.bpl ..\..\D11 >nul
  60. copy *110.dcp ..\..\D11 >nul
  61. copy *.hpp ..\..\D11 >nul
  62. copy ..\..\D11\IndyProtocols110.bpl %NDWINSYS% >nul
  63. copy ..\..\D11\dclIndyProtocols110.bpl %NDWINSYS% >nul
  64. CD ..
  65. goto endok
  66. :enderror
  67. cd ..
  68. call clean
  69. echo Error!
  70. :endok