|
From: Blas R. S. <br...@us...> - 2003-07-03 02:37:44
|
Build Version : T1.5.0.3616 Firebird 1.5 Release Candidate 4 (writeBuildNum.sh,v 1.3613 2003/07/03 02:12:12 brodsom Exp ) Update of /cvsroot/firebird/firebird2/builds/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv17848 Modified Files: parse.bat Log Message: -Change parse.bat to verify yacc/bison and sed and work with the two parser generators. Index: parse.bat =================================================================== RCS file: /cvsroot/firebird/firebird2/builds/win32/parse.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -b -U3 -r1.1 -r1.2 --- parse.bat 24 Jan 2003 13:53:33 -0000 1.1 +++ parse.bat 3 Jul 2003 02:12:11 -0000 1.2 @@ -1,5 +1,77 @@ -yacc -l -d -b dsql ..\..\src\dsql\parse.y -sed -f ..\..\src\dsql\parse.sed <dsql.tab.c >..\..\src\dsql\parse.cpp -copy dsql.tab.h ..\..\src\dsql\dsql.tab.h -del dsql.tab.c -del dsql.tab.h + +@echo off + +@echo. +@set PARSER= +@set SED= +@call :CHECKTOOLS +@if "%PARSER%" == "" ((goto :HELP_TOOLS) & (goto :EOF)) +@if "%SED%" == "" ((goto :HELP_TOOLS) & (goto :EOF)) + +@if "%PARSER%" == "YACC" (call :YACC_PROC) else (call :BISON_PROC) +@call :SED_PROC +@goto :END + +::===================================== +:CHECKTOOLS +:: verify our unix tool set is available + +@bison --help > nul 2>nul +@if not errorlevel 9009 ((set PARSER=BISON) & (goto :sed_pro)) + +@yacc --help > nul 2> nul +@if not errorlevel 9009 ((set PARSER=YACC) & (goto :sed_pro)) + +:sed_pro +@sed --help > nul 2> nul +@if not errorlevel 9009 (set SED=TRUE) + +@goto :EOF + +::===================================== +:BISON_PROC +@set PARSER=BISON +@echo . +@echo Processing with bison +@bison -y -l -d -b dsql ..\..\src\dsql\parse.y +@goto :EOF + +::===================================== +:YACC_PROC +@set PARSER=YACC +@echo . +@echo Processing with yacc +@yacc -l -d -b dsql ..\..\src\dsql\parse.y +@goto :EOF + +::===================================== +:SED_PROC +@echo . +@echo Processing with sed +@sed -f ..\..\src\dsql\parse.sed <dsql.tab.c >..\..\src\dsql\parse.cpp +@copy dsql.tab.h ..\..\src\dsql\dsql.tab.h +@del dsql.tab.c +@del dsql.tab.h +@goto :EOF + +::================= +:HELP_TOOLS +@echo: +@echo Please check that these utilities programs are +@echo all on your path: +@echo: +@echo sed.exe +@echo bison.exe or yacc.exe (only one needed) +@echo: +@echo If you do not have these utilities they may be downloaded +@echo from the following sites +@echo: +@echo sed.exe and bison 1.35 from http://gnuwin32.sourceforge.net/ +@echo: +@echo byacc 1.9 from ftp://garbo.uwasa.fi/pc/unix/ +@echo +@echo: +@goto :END + + +:END \ No newline at end of file |