 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Adrian Keller Guest
|
Posted: Wed Feb 16, 2005 12:05 pm Post subject: Feedback of make.exe |
|
|
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 |
|
 |
|
|
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
|
|