MSDOS Error checking

How to nicely do an error checking in MSDOS?

IF %LOG_FLAG% == YES CALL %GMAKE_HOME%\gmake -f makefile.tdp > ..\logfiles\sql-winx32_bld.log 2>&1
 CALL SET COMPILERESULT=%errorlevel%
 @if %COMPILERESULT% NEQ 0 (
 @echo SQL x32 Compiling failed.
 exit /B %COMPILERESULT%
 )
 IF %LOG_FLAG% == NO CALL %GMAKE_HOME%\gmake -f makefile.tdp
Advertisements
This entry was posted in develop and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s