From 981f474cdb7c1fd65888bb78f23ad3096ebc63f7 Mon Sep 17 00:00:00 2001 From: Tomas Hajny Date: Wed, 26 Jan 2000 22:34:36 +0000 Subject: [PATCH] * support for error logging added --- base/os2snap.bat | 8 +++++++- base/os2snap.cmd | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/base/os2snap.bat b/base/os2snap.bat index 1aa4103463..83f19ef998 100644 --- a/base/os2snap.bat +++ b/base/os2snap.bat @@ -48,6 +48,7 @@ if %FPCDIR%. == . goto ErrorDir if exist %FPCDIR% goto DirOK if exist %FPCDIR%\. goto DirOK if exist %FPCDIR%\makefile goto DirOK +if exist %FPCDIR%\COMPILER\pp.pas goto DirOK if exist %FPCDIR%\SOURCE\makefile goto DirOK if exist %FPCDIR%\SOURCE\COMPILER\pp.pas goto DirOK goto ErrorDir @@ -262,6 +263,7 @@ echo %OS2UNITT% >> %OS2OPTF% echo -FD%REALTOOLS% >> %OS2OPTF% if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF% if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF% +if not .%FPCERRLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF% echo *Assembling the helpers ... %REALTOOLS%\as -o %OS2RTL%\prt0.oo2 %OS2RTL%\prt0.as %REALTOOLS%\as -o %OS2RTL%\prt1.oo2 %OS2RTL%\prt1.as @@ -333,6 +335,7 @@ echo %STACKOPT% >> %OS2OPTF% echo %OS2EXET% >> %OS2OPTF% if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF% if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF% +if not .%FPCERRLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF% echo *Compiling the compiler ... %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %COMPSPATH%\PP.PAS :Comp2 @@ -410,7 +413,10 @@ goto End $Log$ - Revision 1.6 2000-01-16 18:44:21 hajny + Revision 1.7 2000-01-26 22:34:36 hajny + * support for error logging added + + Revision 1.6 2000/01/16 18:44:21 hajny * got rid of PPC386.CFG dependency Revision 1.3 1999/10/01 09:00:21 hajny diff --git a/base/os2snap.cmd b/base/os2snap.cmd index e7dfe255a7..7194ed707b 100644 --- a/base/os2snap.cmd +++ b/base/os2snap.cmd @@ -33,6 +33,8 @@ rem *** reside in the same directory as the other required tools (AS.EXE, rem *** LD.EXE, etc.). rem *** Environment variable OTHEROPTS may be used to specify additional rem *** switches (e.g. setting level of verbosity, etc.). +rem *** Environment variable FPCERRLOG can specify a file for error logging +rem *** (full path needed). echo *"Makefile" for OS/2: @@ -43,6 +45,7 @@ if %FPCDIR%. == . goto ErrorDir if exist %FPCDIR% goto DirOK if exist %FPCDIR%\. goto DirOK if exist %FPCDIR%\makefile goto DirOK +if exist %FPCDIR%\COMPILER\pp.pas goto DirOK if exist %FPCDIR%\SOURCE\makefile goto DirOK if exist %FPCDIR%\SOURCE\COMPILER\pp.pas goto DirOK goto ErrorDir @@ -257,6 +260,7 @@ echo %OS2UNITT% >> %OS2OPTF% echo -FD%REALTOOLS% >> %OS2OPTF% if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF% if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF% +if not .%FPCERRLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF% echo *Assembling the helpers ... %REALTOOLS%\as -o %OS2RTL%\prt0.oo2 %OS2RTL%\prt0.as %REALTOOLS%\as -o %OS2RTL%\prt1.oo2 %OS2RTL%\prt1.as @@ -328,6 +332,7 @@ echo %STACKOPT% >> %OS2OPTF% echo %OS2EXET% >> %OS2OPTF% if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF% if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF% +if not .%FPCERRLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF% echo *Compiling the compiler ... %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %COMPSPATH%\PP.PAS :Comp2 @@ -409,7 +414,10 @@ goto End $Log$ - Revision 1.6 2000-01-16 18:44:21 hajny + Revision 1.7 2000-01-26 22:34:36 hajny + * support for error logging added + + Revision 1.6 2000/01/16 18:44:21 hajny * got rid of PPC386.CFG dependency Revision 1.3 1999/10/01 09:00:21 hajny