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