Fulld_2006.bat 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. call clean.bat
  14. computil SetupD10
  15. if exist setenv.bat call setenv.bat
  16. if not exist ..\D100\*.* md ..\D100 >nul
  17. if exist ..\D100\*.* call clean.bat ..\D100\
  18. if (%NDD10%)==() goto enderror
  19. if (%NDWINSYS%)==() goto enderror
  20. ECHO ****************
  21. ECHO Compile System
  22. ECHO ****************
  23. CD System
  24. %NDD10%\Bin\dcc32.exe IndySystem100.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D100 -$d-l-n+p+r-s-t-w- %2 %3 %4
  25. if errorlevel 1 goto enderror
  26. copy *100.bpl ..\..\D100 >nul
  27. copy *100.dcp ..\..\D100 >nul
  28. copy *.hpp ..\..\D100 >nul
  29. copy ..\..\D100\IndySystem100.bpl %NDWINSYS% >nul
  30. CD ..
  31. ECHO **************
  32. ECHO Compile Core
  33. ECHO **************
  34. CD Core
  35. %NDD10%\Bin\dcc32.exe IndyCore100.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D100 /U..\..\D100 -$d-l-n+p+r-s-t-w- %2 %3 %4
  36. if errorlevel 1 goto enderror
  37. %NDD10%\Bin\dcc32.exe dclIndyCore100.dpk /Oobjs /DBCB /m /h /w /N..\..\D100 /U..\..\D100 -$d-l-n+p+r-s-t-w- %2 %3 %4
  38. if errorlevel 1 goto enderror
  39. copy *100.bpl ..\..\D100 >nul
  40. copy *100.dcp ..\..\D100 >nul
  41. copy *.hpp ..\..\D100 >nul
  42. copy ..\..\D100\IndyCore100.bpl %NDWINSYS% >nul
  43. copy ..\..\D100\dclIndyCore100.bpl %NDWINSYS% >nul
  44. CD ..
  45. ECHO *******************
  46. ECHO Compile Protocols
  47. ECHO *******************
  48. CD Protocols
  49. ECHO ************************
  50. ECHO IdCompressionIntercept
  51. ECHO ************************
  52. %NDD10%\Bin\dcc32.exe -DBCB -B -M -JPHNE -N..\..\D100 /U..\..\D100 -H -W -Z IdCompressionIntercept.pas -$d-l-
  53. if errorlevel 1 goto enderror
  54. %NDD10%\Bin\dcc32.exe IndyProtocols100.dpk /Oobjs /DBCB /m /h /w /JPHNE /N..\..\D100 /U..\..\D100 -$d-l-n+p+r-s-t-w- %2 %3 %4
  55. if errorlevel 1 goto enderror
  56. %NDD10%\Bin\dcc32.exe dclIndyProtocols100.dpk /Oobjs /m /h /w /N..\..\D100 /U..\..\D100 -$d-l-n+p+r-s-t-w- %2 %3 %4
  57. if errorlevel 1 goto enderror
  58. copy *100.bpl ..\..\D100 >nul
  59. copy *100.dcp ..\..\D100 >nul
  60. copy *.hpp ..\..\D100 >nul
  61. copy ..\..\D100\IndyProtocols100.bpl %NDWINSYS% >nul
  62. copy ..\..\D100\dclIndyProtocols100.bpl %NDWINSYS% >nul
  63. CD ..
  64. goto endok
  65. :enderror
  66. call clean
  67. echo Error!
  68. :endok