Fix bat file quoting of %ENV.

This commit is contained in:
Andrew Dunstan 2011-07-03 10:36:56 -04:00
parent 24e2d4b6ba
commit 19b7fac86d
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ exit /b 1
SETLOCAL SETLOCAL
IF NOT EXIST buildenv.pl goto nobuildenv IF NOT EXIST buildenv.pl goto nobuildenv
perl -e "require 'buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat perl -e "require 'buildenv.pl'; while(($k,$v) = each %%ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
CALL bldenv.bat CALL bldenv.bat
del bldenv.bat del bldenv.bat
:nobuildenv :nobuildenv

View File

@ -2,7 +2,7 @@
REM src/tools/msvc/pgbison.bat REM src/tools/msvc/pgbison.bat
IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %%ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
CALL bldenv.bat CALL bldenv.bat
del bldenv.bat del bldenv.bat
:nobuildenv :nobuildenv

View File

@ -5,7 +5,7 @@ REM silence flex bleatings about file path style
SET CYGWIN=nodosfilewarning SET CYGWIN=nodosfilewarning
IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %%ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
CALL bldenv.bat CALL bldenv.bat
del bldenv.bat del bldenv.bat
:nobuildenv :nobuildenv