Add meson.build to version_stamp.pl
authorPeter Eisentraut <[email protected]>
Wed, 12 Oct 2022 05:03:51 +0000 (07:03 +0200)
committerPeter Eisentraut <[email protected]>
Wed, 12 Oct 2022 05:06:10 +0000 (07:06 +0200)
Author: Dagfinn Ilmari Mannsåker <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/7567dd2d-5e28-c135-79ff-270d7ed83490%40enterprisedb.com

src/tools/version_stamp.pl

index 9d4f44d4a95b49a91f9b9887a82067a2a4ee1334..0c2f6a14de62d16175ec728fe1a21a6ca0e88ed5 100755 (executable)
@@ -95,6 +95,9 @@ my $fixedfiles = "";
 sed_file("configure.ac",
    "-e 's/AC_INIT(\\[PostgreSQL\\], \\[[0-9a-z.]*\\]/AC_INIT([PostgreSQL], [$fullversion]/'"
 );
+sed_file("meson.build",
+   qq{-e "/^project(/,/^)/ s/ version: '[0-9a-z.]*',/ version: '$fullversion',/"}
+);
 
 print "Stamped these files with version number $fullversion:\n$fixedfiles";
 print "Don't forget to run autoconf $aconfver before committing.\n";