pgsql: Check for correct version of perltidy

Started by Daniel Gustafsson8 months ago1 messagescomitters
Jump to latest
#1Daniel Gustafsson
daniel@yesql.se

Check for correct version of perltidy

pgperltidy requires a particular version of perltidy, but the version
wasn't checked like how pgindent checks the underlying indent binary.
Fix by checking the version of perltidy and error out if an incorrect
version is used.

Author: Daniel Gustafsson <daniel@yesql.se>
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: /messages/by-id/1209850.1764092152@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cdb84bb1bcd6de4abcb5b2137f57c6c7463f4ab

Modified Files
--------------
src/tools/pgindent/pgperltidy | 6 ++++++
1 file changed, 6 insertions(+)