mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix path problem in MSVC bison wrapper. per Joachim Wieland.
This commit is contained in:
@ -19,13 +19,15 @@ exit 1
|
|||||||
|
|
||||||
:generate
|
:generate
|
||||||
SET fn=%1
|
SET fn=%1
|
||||||
bison -d %fn%
|
SET cf=%2
|
||||||
|
bison.exe -d %fn% -o %cf%
|
||||||
if errorlevel 1 exit 1
|
if errorlevel 1 exit 1
|
||||||
copy /y %fn:~0,-2%.tab.c %2
|
SET hf=%cf:~0,-2%.h
|
||||||
if errorlevel 1 exit 1
|
if not "%hf%"=="%3" (
|
||||||
copy /y %fn:~0,-2%.tab.h %3
|
copy /y %hf% %3
|
||||||
if errorlevel 1 exit 1
|
if errorlevel 1 exit 1
|
||||||
del %fn:~0,-2%.tab.*
|
del %hf%
|
||||||
|
)
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user