projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a534068
)
Fix path problem in MSVC bison wrapper. per Joachim Wieland.
author
Andrew Dunstan
<andrew@dunslane.net>
Sun, 28 Jan 2007 16:29:37 +0000
(16:29 +0000)
committer
Andrew Dunstan
<andrew@dunslane.net>
Sun, 28 Jan 2007 16:29:37 +0000
(16:29 +0000)
src/tools/msvc/pgbison.bat
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/msvc/pgbison.bat
b/src/tools/msvc/pgbison.bat
index f433e0774bd7a176f8be6326411434be03810e22..c770d0fffc607d410200cf3b63607cc4d8712041 100755
(executable)
--- a/
src/tools/msvc/pgbison.bat
+++ b/
src/tools/msvc/pgbison.bat
@@
-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