This is the bat to recreate the exact CBuilder2007 directory structure.
Put it into the same dir where the other Indy bat files are. (Full4.bat,
Full5.Bat, ......)
The Directory created is called "C120" simply copy all items in the dir to
C:\Program Files\CodeGear\RAD Studio\5.0
Again - this works on my computer - may need to be djusted to fit yours -
run at your own risk.
The issue remaining is the difference between debug and release version:
What is it that should be specified in the .dpk file and commandline.
Fullc120.bat
______________________________________________
@echo off
if not (%COMSPEC%)==() goto start
echo No Command Interpreter found
goto EndExit
:start
call clean.bat
SET NDCBuilder=C:\Progra~1\CodeGear\RADStu~1\5.0
SET NDWINSYS=C:\WINDOWS\system32
SET NDIdSource=E:\d\Cbuild~3\Indy10
SET NDIdSystem=%NDIdSource%\C120\source\Indy\Indy10\System
SET NDIdCore=%NDIdSource%\C120\source\Indy\Indy10\Core
SET NDIdProtocols=%NDIdSource%\C120\source\Indy\Indy10\Protocols
Set NDIdDcu=%NDIdSource%\C120\lib\Indy10
Set NDIdDcp=%NDIdSource%\C120\lib\Indy10
Set NDIdHpp=%NDIdSource%\C120\include\Indy10
Set NDIdBpi=%NDIdSource%\C120\lib\release
Set NDIdLib=%NDIdSource%\C120\lib\release
Set NDIdBpl=%NDIdSource%\C120\Bin
Rem Debug directories
Set dNDIdDcu=%NDIdSource%\C120\lib\debug\Indy10
Set dNDIdBpi=%NDIdSource%\C120\lib\debug
Set dNDIdLib=%NDIdSource%\C120\lib\debug
if (%NDCBuilder%)==() goto enderrmsg
if not exist %NDCBuilder% goto enderrmsg
if not exist %NDWINSYS% goto enderrmsg
@Echo Delete manually the C120Bin directory now
@Pause
if not exist %NDIdSource%\C120\Bin\*.* md %NDIdSource%\C120\Bin>nul
if not exist %NDIdSource%\C120\include\*.* md %NDIdSource%\C120\include>nul
if not exist %NDIdSource%\C120\include\Indy10\*.* md
%NDIdSource%\C120\include\Indy10>nul
if not exist %NDIdSource%\C120\source\*.* md %NDIdSource%\C120\source>nul
if not exist %NDIdSource%\C120\source\Indy\*.* md
%NDIdSource%\C120\source\Indy>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\*.* md
%NDIdSource%\C120\source\Indy\Indy10>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\System\*.* md
%NDIdSource%\C120\source\Indy\Indy10\System>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\System\Obj\*.* md
%NDIdSource%\C120\source\Indy\Indy10\System\obj>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\Protocols\*.* md
%NDIdSource%\C120\source\Indy\Indy10\Protocols>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\Protocols\Obj\*.* md
%NDIdSource%\C120\source\Indy\Indy10\Protocols\Obj>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\Core\*.* md
%NDIdSource%\C120\source\Indy\Indy10\Core>nul
if not exist %NDIdSource%\C120\source\Indy\Indy10\Core\Obj\*.* md
%NDIdSource%\C120\source\Indy\Indy10\Core\Obj>nul
if not exist %NDIdSource%\C120\Help\*.* md %NDIdSource%\C120\Help>nul
if not exist %NDIdSource%\C120\Help\Doc\*.* md %NDIdSource%\C120\Help\Doc
Quote
nul
if not exist %NDIdSource%\C120\Help\Doc\Indy\*.* md
%NDIdSource%\C120\Help\Doc\Indy>nul
if not exist %NDIdSource%\C120\lib\*.* md %NDIdSource%\C120\lib>nul
if not exist %NDIdSource%\C120\lib\Indy10\*.* md
%NDIdSource%\C120\lib\Indy10>nul
if not exist %NDIdSource%\C120\lib\release\*.* md
%NDIdSource%\C120\lib\release>nul
if not exist %NDIdSource%\C120\lib\debug\*.* md %NDIdSource%\C120\lib\debug
Quote
nul
if not exist %NDIdSource%\C120\lib\debug\Indy10\*.* md
%NDIdSource%\C120\lib\debug\Indy10>nul
REM * REM * - Debug Build add /V switch: D+ O- W+ M+ R+ Q+ I+ Y+ L+
REM ***************************************************
REM Compile Runtime Package IndySystem120
REM ***************************************************
if exist %NDIdSource%\lib\System\*.pas copy %NDIdSource%\lib\System\*.pas
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.dpk copy %NDIdSource%\lib\System\*.dpk
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.obj copy %NDIdSource%\lib\System\*.obj
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.inc copy %NDIdSource%\lib\System\*.inc
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.res copy %NDIdSource%\lib\System\*.res
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.dcr copy %NDIdSource%\lib\System\*.dcr
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.rsp copy %NDIdSource%\lib\System\*.rsp
%NDIdSystem%>nul
CD %NDIdSystem%
%NDCBuilder%\bin\dcc32.exe IndySystem120.dpk /B /V /O%dNDIdLib% /DBCB /M /H
/W /JPHN /JL /E%dNDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%dNDIdDcu%
/NH%NDIdHpp% /NO%dNDIdLib% /NB%dNDIdBpi% /-DRC -$d+O-n+p+r+s-t-w+y+m+q+i+l+
%2 %3 %4
REM ***************************************************
REM Compile Runtime Package IndyCore120
REM ***************************************************
if exist %NDIdSource%\lib\Core\*.pas copy %NDIdSource%\lib\Core\*.pas
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.dpk copy %NDIdSource%\lib\Core\*.dpk
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.obj copy %NDIdSource%\lib\Core\*.obj
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.inc copy %NDIdSource%\lib\Core\*.inc
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.res copy %NDIdSource%\lib\Core\*.res
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.dcr copy %NDIdSource%\lib\Core\*.dcr
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.rsp copy %NDIdSource%\lib\Core\*.rsp
%NDIdCore%>nul
CD %NDIdCore%
%NDCBuilder%\bin\dcc32.exe IndyCore120.dpk /B /V /O%dNDIdLib% /DBCB /M /H /W
/JPHN /JL /E%dNDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%dNDIdDcu% /NH%NDIdHpp%
/NO%dNDIdLib% /NB%dNDIdBpi% /-DRC -$d+O-n+p+r+s-t-w+y+m+q+i+l+ %2 %3 %4
REM ***************************************************
REM Compile Designtime Package dclIndyCore120
REM ***************************************************
%NDCBuilder%\bin\dcc32.exe dclIndyCore120.dpk /B /V /O%dNDIdLib% /DBCB /M /H
/W /JPHN /JL /E%dNDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%dNDIdDcu%
/NH%NDIdHpp% /NO%dNDIdLib% /NB%dNDIdBpi% /-DRC -$d+O-n+p+r+s-t-w+y+m+q+i+l+
%2 %3 %4
REM ***************************************************
REM Compile Runtime Package IndyProtocols120
REM ***************************************************
if exist %NDIdSource%\lib\Protocols\*.pas copy
%NDIdSource%\lib\Protocols\*.pas %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.dpk copy
%NDIdSource%\lib\Protocols\*.dpk %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.obj copy
%NDIdSource%\lib\Protocols\*.obj %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.inc copy
%NDIdSource%\lib\Protocols\*.inc %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.res copy
%NDIdSource%\lib\Protocols\*.res %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.dcr copy
%NDIdSource%\lib\Protocols\*.dcr %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.rsp copy
%NDIdSource%\lib\Protocols\*.rsp %NDIdProtocols%>nul
CD %NDIdProtocols%
%NDCBuilder%\bin\dcc32.exe IndyProtocols120.dpk /B /O%dNDIdLib% /DBCB /M /H
/W /JPHN /JL /E%dNDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%dNDIdDcu%
/NH%NDIdHpp% /NO%dNDIdLib% /NB%dNDIdBpi% /-DRC -$d+O-n+p+r+s-t-w+y+m+q+i+l+
%2 %3 %4
REM ***************************************************
REM Compile Designtime Package dclIndyProtocols120
REM ***************************************************
%NDCBuilder%\bin\dcc32.exe dclIndyProtocols120.dpk /B /V /O%dNDIdLib% /DBCB
/M /H /W /JPHN /JL /E%dNDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%dNDIdDcu%
/NH%NDIdHpp% /NO%dNDIdLib% /NB%dNDIdBpi% /-DRC -$d+O-n+p+r+s-t-w+y+m+q+i+l+
%2 %3 %4
REM * REM * - Debug Build End
REM * REM * - Release Build
REM ***************************************************
REM Compile Runtime Package IndySystem120
REM ***************************************************
if exist %NDIdSource%\lib\System\*.pas copy %NDIdSource%\lib\System\*.pas
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.dpk copy %NDIdSource%\lib\System\*.dpk
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.obj copy %NDIdSource%\lib\System\*.obj
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.inc copy %NDIdSource%\lib\System\*.inc
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.res copy %NDIdSource%\lib\System\*.res
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.dcr copy %NDIdSource%\lib\System\*.dcr
%NDIdSystem%>nul
if exist %NDIdSource%\lib\System\*.rsp copy %NDIdSource%\lib\System\*.rsp
%NDIdSystem%>nul
CD %NDIdSystem%
%NDCBuilder%\bin\dcc32.exe IndySystem120.dpk /B /O%NDIdLib% /DBCB /M /H /W
/JPHN /JL /E%NDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%NDIdDcu% /NH%NDIdHpp%
/NO%NDIdLib% /NB%NDIdBpi% /-DRC -$d-l-n+p+r-s-t-w-y- %2 %3 %4
REM ***************************************************
REM Compile Runtime Package IndyCore120
REM ***************************************************
if exist %NDIdSource%\lib\Core\*.pas copy %NDIdSource%\lib\Core\*.pas
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.dpk copy %NDIdSource%\lib\Core\*.dpk
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.obj copy %NDIdSource%\lib\Core\*.obj
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.inc copy %NDIdSource%\lib\Core\*.inc
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.res copy %NDIdSource%\lib\Core\*.res
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.dcr copy %NDIdSource%\lib\Core\*.dcr
%NDIdCore%>nul
if exist %NDIdSource%\lib\Core\*.rsp copy %NDIdSource%\lib\Core\*.rsp
%NDIdCore%>nul
CD %NDIdCore%
%NDCBuilder%\bin\dcc32.exe IndyCore120.dpk /B /O%NDIdLib% /DBCB /M /H /W
/JPHN /JL /E%NDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%NDIdDcu% /NH%NDIdHpp%
/NO%NDIdLib% /NB%NDIdBpi% /-DRC -$d-l-n+p+r-s-t-w-y- %2 %3 %4
REM ***************************************************
REM Compile Designtime Package dclIndyCore120
REM ***************************************************
%NDCBuilder%\bin\dcc32.exe dclIndyCore120.dpk /B /O%NDIdLib% /DBCB /M /H /W
/JPHN /JL /E%NDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%NDIdDcu% /NH%NDIdHpp%
/NO%NDIdLib% /NB%NDIdBpi% /-DRC -$d-l-n+p+r-s-t-w-y- %2 %3 %4
REM ***************************************************
REM Compile Runtime Package IndyProtocols120
REM ***************************************************
if exist %NDIdSource%\lib\Protocols\*.pas copy
%NDIdSource%\lib\Protocols\*.pas %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.dpk copy
%NDIdSource%\lib\Protocols\*.dpk %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.obj copy
%NDIdSource%\lib\Protocols\*.obj %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.inc copy
%NDIdSource%\lib\Protocols\*.inc %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.res copy
%NDIdSource%\lib\Protocols\*.res %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.dcr copy
%NDIdSource%\lib\Protocols\*.dcr %NDIdProtocols%>nul
if exist %NDIdSource%\lib\Protocols\*.rsp copy
%NDIdSource%\lib\Protocols\*.rsp %NDIdProtocols%>nul
CD %NDIdProtocols%
%NDCBuilder%\bin\dcc32.exe IndyProtocols120.dpk /B /O%NDIdLib% /DBCB /M /H
/W /JPHN /JL /E%NDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%NDIdDcu% /NH%NDIdHpp%
/NO%NDIdLib% /NB%NDIdBpi% /-DRC -$d-l-n+p+r-s-t-w-y- %2 %3 %4
REM ***************************************************
REM Compile Designtime Package dclIndyProtocols120
REM ***************************************************
%NDCBuilder%\bin\dcc32.exe dclIndyProtocols120.dpk /B /O%NDIdLib% /DBCB /M
/H /W /JPHN /JL /E%NDIdLib% /LE%NDIdBpl% /LN%NDIdDcp% /N0%NDIdDcu%
/NH%NDIdHpp% /NO%NDIdLib% /NB%NDIdBpi% /-DRC -$d-l-n+p+r-s-t-w-y- %2 %3 %4
REM * REM * - Release Build End
REM ***************************************************
REM Delete third-party .obj files
REM before compiling the .lib file
REM ***************************************************
del adler32.obj>nul
del compress.obj>nul
del crc32.obj>nul
del deflate.obj>nul
del example.obj>nul
del gzio.obj>nul
del infback.obj>nul
del inffast.obj>nul
del inflate.obj>nul
del inftrees.obj>nul
del minigzip.obj>nul
del trees.obj>nul
del uncompr.obj>nul
del zutil.obj>nul
goto EndExit
:enderror
call ..\Lib\clean.bat
cd ..\Lib
goto EndExit
:enderrmsg
echo Error!
goto EndExit
:endok
:EndExit
Echo End Batch File
@Pause
______________________________________________