Fulld_5.bat 2.0 KB

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