mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-27 06:17:20 +02:00
To generate a dummy probes.h file when dtrace is not available, we had
two different scripts: A sed version, which is the original version,
and a Perl version, which was generated by s2p. This split was
necessary because Perl was not a mandatory build dependency on Unix,
but sed was not guaranteed to be available on Windows.
(The Meson build system used the sed version even on Windows, which
was probably incorrect and probably would have had to be fixed before
elevating that build system from experimental status.)
As of 721856ff24
, Perl is a required build dependency, so this split
is no longer necessary. We can just use the Perl script in all build
environments and remove a whole bunch of infrastructure to keep the
two variants in sync.
The new Gen_dummy_probes.pl is not the version generated by s2p but a
new implementation written by hand by adapting the sed version to Perl
syntax.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/3fd0f1bc-4483-4ba9-8aa0-64765b052039@eisentraut.org
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
* whitespace=space-before-tab,trailing-space
|
|
*.[chly] whitespace=space-before-tab,trailing-space,indent-with-non-tab,tabwidth=4
|
|
*.pl whitespace=space-before-tab,trailing-space,tabwidth=4
|
|
*.pm whitespace=space-before-tab,trailing-space,tabwidth=4
|
|
*.po whitespace=space-before-tab,trailing-space,tab-in-indent,-blank-at-eof
|
|
*.sgml whitespace=space-before-tab,trailing-space,tab-in-indent
|
|
*.x[ms]l whitespace=space-before-tab,trailing-space,tab-in-indent
|
|
|
|
# Avoid confusing ASCII underlines with leftover merge conflict markers
|
|
README conflict-marker-size=32
|
|
README.* conflict-marker-size=32
|
|
|
|
# Certain data files that contain special whitespace, and other special cases
|
|
*.data -whitespace
|
|
contrib/pgcrypto/sql/pgp-armor.sql whitespace=-blank-at-eol
|
|
src/backend/catalog/sql_features.txt whitespace=space-before-tab,blank-at-eof,-blank-at-eol
|
|
|
|
# Test output files that contain extra whitespace
|
|
*.out -whitespace
|
|
src/interfaces/ecpg/test/expected/* -whitespace
|
|
src/interfaces/libpq/test/expected.out whitespace=-blank-at-eof
|
|
|
|
# These files are maintained or generated elsewhere. We take them as is.
|
|
configure -whitespace
|
|
ppport.h -whitespace
|
|
src/backend/regex/COPYRIGHT -whitespace
|
|
src/backend/snowball/libstemmer/*.c -whitespace
|
|
src/backend/utils/mb/Unicode/*-std.txt -whitespace
|
|
src/include/snowball/libstemmer/* -whitespace
|
|
src/timezone/data/* -whitespace
|
|
src/tools/pg_bsd_indent/* -whitespace
|
|
src/tools/pg_bsd_indent/tests/* -whitespace
|