diff options
| author | Michael Meskes <meskes@postgresql.org> | 2008-11-14 17:11:40 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 2008-11-14 17:11:40 +0000 |
| commit | b78f9b496df89ac7bc81b7ff37ca83006c529bda (patch) | |
| tree | 7aa7d6ee677a69bad690069043f5ee84314d7f38 /src/tools | |
| parent | a76e98f0211f5f3fac5d716ac23b7e5fb9a00129 (diff) | |
Enable script to generate preproc.y in build process.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/msvc/Solution.pm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 3c31c63359e..2fa7b20909c 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -3,7 +3,7 @@ package Solution; # # Package that encapsulates a Visual C++ solution file generation # -# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.44 2008/08/16 12:42:27 mha Exp $ +# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.45 2008/11/14 17:11:40 meskes Exp $ # use Carp; use strict; @@ -239,6 +239,19 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY if ( IsNewer( + 'src\interfaces\ecpg\preproc\preproc.y', + 'src\backend\parser\gram.y' + ) + ) + { + print "Generating preproc.y...\n"; + chdir('src\interfaces\ecpg\preproc'); + system('perl parse.pl < ..\..\..\backend\parser\gram.y > preproc.y'); + chdir('..\..\..\..'); + } + + if ( + IsNewer( 'src\interfaces\ecpg\include\ecpg_config.h', 'src\interfaces\ecpg\include\ecpg_config.h.in' ) |
