Thread

  1. Re: %ENV warnings during builds

    Andrew Dunstan <andrew@dunslane.net> — 2011-07-05T15:25:46Z

    
    On 07/05/2011 02:30 AM, Brar Piening wrote:
    > schrieb Andrew Dunstan:
    >> Hmm, I missed that you had done this. Here are two replacement perl 
    >> scripts I knocked up, but haven't yet tested. One of the things about 
    >> them is that they remove knowledge of particular .l and .y files. and 
    >> instead get the required invocation options from the relevant 
    >> Makefiles. I think that's a lot better than the horrid hackery we 
    >> have in the batch files.
    >
    > Yep - they certainly look ways less messy than what I've created as a 
    > simple perl version of the batch files.
    >
    > But I get "Undefined subroutine &main::dirname called at 
    > src\tools\msvc\pgflex.pl line 36." if I try to build with them.
    >
    > I'll update my patch to remove my versions once they are fixed and 
    > commited.
    
    
    Try attached instead.
    
    The bat wrappers just need to read:
    
        @echo off
        @perl src/tools/msvc/pgflex.pl %*
    
    and
    
        @echo off
        @perl src/tools/msvc/pgbison.pl %*
    
    cheers
    
    andrew