BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Feedback of make.exe

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Adrian Keller
Guest





PostPosted: Wed Feb 16, 2005 12:05 pm    Post subject: Feedback of make.exe Reply with quote



Hello everybody,

I am using make.exe in order to compile a project with a batch-file.
Like this I am actually compiling a couple of projects. Some of the
projects will compile sucessfully, others will fail. What I don't know
is how to get back a result of make.exe which I could evaluate using a
batchfile. I want to generate a different protocol in case all went
fine vs. something went wrong. Any ideas?

What I did so far:

[snip]
cd %ProjectPath%
if exist %ProjectName%.bpr bpr2mak %ProjectName%.mak %ProjectName%.bpr
if exist %ProjectName%.bpk bpr2mak %ProjectName%.mak %ProjectName%.bpk
make -s -f %ProjectName%.mak >> make_output.txt
del %ProjectName%.mak

grep -l " errors in " make_output.txt>>checkresult.txt
grep -l "Fatal:" make_output.txt>>checkresult.txt
grep -l "Error E" make_output.txt>>checkresult.txt
set Result=
set /p Result=<checkresult.txt
del checkresult.txt
if "%Result%" EQU "" goto Compiled
goto FailedCompiling

:Compiled
ECHO %ProjectName% >> %SuccessList%
goto Exit

:FailedCompiling
ECHO %ProjectName% >> %FailedList%
copy /A %ErrorProtocol%+make_output.txt %ErrorProtocol%
[snip]

However I have the feeling I am not able to catch all possible failure
reasons using the "grep"-idea. How can I check if the program itself
was really build or not?

Thanks for your help

Adrian

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.