1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix path problem in MSVC bison wrapper. per Joachim Wieland.

This commit is contained in:
Andrew Dunstan
2007-01-28 16:29:37 +00:00
parent a534068e0e
commit 17c8493c64

View File

@ -19,13 +19,15 @@ exit 1
:generate
SET fn=%1
bison -d %fn%
SET cf=%2
bison.exe -d %fn% -o %cf%
if errorlevel 1 exit 1
copy /y %fn:~0,-2%.tab.c %2
if errorlevel 1 exit 1
copy /y %fn:~0,-2%.tab.h %3
if errorlevel 1 exit 1
del %fn:~0,-2%.tab.*
SET hf=%cf:~0,-2%.h
if not "%hf%"=="%3" (
copy /y %hf% %3
if errorlevel 1 exit 1
del %hf%
)
exit 0