diff options
| author | Andres Freund <andres@anarazel.de> | 2022-07-18 11:57:31 -0700 |
|---|---|---|
| committer | Andres Freund <andres@anarazel.de> | 2022-07-18 12:24:12 -0700 |
| commit | 7c3c2cb9aeda4f288e89b25ede8cc2fe5997ac98 (patch) | |
| tree | 1db74980fabc60e949b04065112dec592c2ea09a /src/tools | |
| parent | a91242b1bcb312d6f482a758a432a32bd375896e (diff) | |
psql: Output dir and dependency generation for sql_help
This is in preparation for building postgres with meson / ninja.
When building with meson, commands are run at the root of the build tree. Add
an option to put build output into the appropriate place. This can be utilized
by src/tools/msvc/ for a minor simplification, which also provides some
coverage for the new option.
To deal with dependencies to the variable set of input files to this script,
add an option to generate a dependency file (which meson / ninja can consume).
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/msvc/Solution.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index f2427008df6..840f251343c 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -692,9 +692,8 @@ sub GenerateFiles if (IsNewer('src/bin/psql/sql_help.h', 'src/bin/psql/create_help.pl')) { print "Generating sql_help.h...\n"; - chdir('src/bin/psql'); - system("perl create_help.pl ../../../doc/src/sgml/ref sql_help"); - chdir('../../..'); + my $psql = 'src/bin/psql'; + system("perl $psql/create_help.pl --docdir doc/src/sgml/ref --outdir $psql --basename sql_help"); } if (IsNewer('src/common/kwlist_d.h', 'src/include/parser/kwlist.h')) |
