🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #670

Re: Update Indy10 in C++Builder 2007

#670
From: roladdon
Date: Sun, 23 Dec 2007 21:00
304 lines
13865 bytes
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 
 >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 
 >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

______________________________________________ 
Technical Details
Message-ID: <476ecc7a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4765b072$1@newsgroups.borland.com> <4766b27c$1@newsgroups.borland.com> <4766c462$1@newsgroups.borland.com> <4766ce43@newsgroups.borland.com> <4766f66e$1@newsgroups.borland.com> <476700ff$3@newsgroups.borland.com> <476719a0$1@newsgroups.borland.com> <47674582$1@newsgroups.borland.com> <4767e8d4$1@newsgroups.borland.com> <476969f7$1@newsgroups.borland.com> <476c2185$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7a755873c3a4c5bd
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "roladdon" <roladdon@PutMyServerHere.ca>
From: "roladdon" <roladdon@PutMyServerHere.ca>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4765b072$1@newsgroups.borland.com> <4766b27c$1@newsgroups.borland.com> <4766c462$1@newsgroups.borland.com> <4766ce43@newsgroups.borland.com> <4766f66e$1@newsgroups.borland.com> <476700ff$3@newsgroups.borland.com> <476719a0$1@newsgroups.borland.com> <47674582$1@newsgroups.borland.com> <4767e8d4$1@newsgroups.borland.com> <476969f7$1@newsgroups.borland.com> <476c2185$1@newsgroups.borland.com>
Subject: Re: Update Indy10 in C++Builder 2007
Date: Sun, 23 Dec 2007 16:00:35 -0500
Lines: 306
Organization: AddOn
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 65.95.230.116
Message-ID: <476ecc7a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1198443642 65.95.230.116 (23 Dec 2007 13:00:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail