aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2007-01-28 16:29:37 +0000
committerAndrew Dunstan <andrew@dunslane.net>2007-01-28 16:29:37 +0000
commit17c8493c6469c63974c212dfb73a4d3cdff98e5e (patch)
treedeaddecc538ad36b32f58e330e944aa4d14cdc91 /src
parenta534068e0e4c373ef2fe956f9782cf252e1bdc1e (diff)
downloadpostgresql-17c8493c6469c63974c212dfb73a4d3cdff98e5e.tar.gz
postgresql-17c8493c6469c63974c212dfb73a4d3cdff98e5e.zip
Fix path problem in MSVC bison wrapper. per Joachim Wieland.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/msvc/pgbison.bat14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tools/msvc/pgbison.bat b/src/tools/msvc/pgbison.bat
index f433e0774bd..c770d0fffc6 100755
--- 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