%ENV warnings during builds - Mailing list pgsql-hackers

From Craig Ringer
Subject %ENV warnings during builds
Date
Msg-id 4E105D23.7010104@postnewspapers.com.au
Whole thread Raw
Responses Re: %ENV warnings during builds
Re: %ENV warnings during builds
List pgsql-hackers
Hi folks

It looks like pgflex.bat and pgbison.bat in the win32 build files would 
benefit from a tweak to eliminate a complaint from Perl.

Perl emits the error:
  Hash %ENV missing the % in argument 1 of each() at -e line 1

on the lines that process buildenv.pl. This is because % in batch files 
is processed differently to on the command line. (Yes, that's stupid). 
Quoting doesn't affect this. Percent signs in batch files that are 
intended to be literals should be doubled, so %ENV should be written %%ENV.

http://support.microsoft.com/kb/75634

I. Hate. Batch. Files.

--
Craig Ringer


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Deriving release notes from git commit messages
Next
From: "Andrew Dunstan"
Date:
Subject: Re: %ENV warnings during builds