Move snowball_create.sql creation into perl file

Andres Freund <andres@anarazel.de>

Commit: b3a0d8324cf1f02c04a7099a436cfd68cfbf4566
Author: Andres Freund <andres@anarazel.de>
Date: 2022-07-18T19:24:27Z
Releases: 16.0
Move snowball_create.sql creation into perl file

This is in preparation for building postgres with meson / ninja.

We already have duplicated code for this between the make and msvc
builds. Adding a third copy seems like a bad plan, thus move the generation
into a perl script.

As we don't want to rely on perl being available for builds from tarballs,
generate the file during distprep.

Author: Peter Eisentraut <peter@eisentraut.org>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com

Files

PathChange+/−
src/backend/snowball/Makefile modified +28 −78
src/backend/snowball/snowball_create.pl added +148 −0
src/tools/msvc/Install.pm modified +3 −33

Discussion