meson: Fix installation path computation
authorPeter Eisentraut <[email protected]>
Fri, 27 Jan 2023 09:49:17 +0000 (10:49 +0100)
committerPeter Eisentraut <[email protected]>
Fri, 27 Jan 2023 10:57:11 +0000 (11:57 +0100)
commit8f6858064b1442f9ad057d289b0e4f018a2ad8aa
tree22a5fe667166945520d795fc9c6942761d440fc4
parent17e72ec45d313b98bd90b95bc71b4cc77c2c89c3
meson: Fix installation path computation

We have the long-standing logic to append "postgresql" to some
installation paths if it does not already contain "pgsql" or
"postgres".  The existing meson implementation of that only considered
the subdirectory under the prefix, not the prefix itself.  Fix that,
so that it now works the same way as the implementation in
Makefile.global.

Reviewed-by: Andres Freund <[email protected]>
Discussion: https://www.postgresql.org/message-id/a6a6de12-f705-2b33-2fd9-9743277deb08@enterprisedb.com
meson.build