pgsql: Fix make_etags failure on Mac.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix make_etags failure on Mac.
Date: 2023-02-15 01:11:34
Message-ID: E1pS6Kc-001Bvm-89@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix make_etags failure on Mac.

Previously make_etags always ran make_ctags -e when make_etags was
executed. However, because non-Exuberant ctags on Mac does not
support -e option (and also on other platforms including old Linux),
ctags failed. To avoid the failure change make_ctags so that if
non-Exuberant ctags is used and ctags -e option is requested, run
etags command instead. If etags command does not exist, make_ctags
will fail.

Also refactor make_ctags and tweak make_etags to emit proper usage
message.

Author: Fujii Masao
Reviewed-by: Tatsuo Ishii
Discussion: https://www.postgresql.org/message-id/369c13b9-8b0f-d6f9-58fc-61258ec8f713%40oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/87f21d2c68900ea4ccc6e20a9a3c941fafa9f94a

Modified Files
--------------
src/tools/make_ctags | 38 +++++++++++++++++++++++++++-----------
src/tools/make_etags | 8 +++++++-
2 files changed, 34 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-02-15 01:14:14 pgsql: Fix handling of SCRAM-SHA-256's channel binding with RSA-PSS cer
Previous Message Peter Eisentraut 2023-02-14 12:39:58 pgsql: Change argument type of pq_sendbytes from char * to void *