Skip to content

Commit 52a301e

Browse files
committed
Improve missing-program error handling in make_ctags and make_etags.
If ctags (resp. etags) isn't installed, these scripts naturally fail, but the error messages were less clear than one could wish. It seems worth installing an explicit test to improve that. Nikolay Shaplov, with suggestions from Michael Paquier and Andrew Dunstan Discussion: https://postgr.es/m/2394207.ccz7JgCJsh@x200m
1 parent 9f527a6 commit 52a301e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/tools/make_ctags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
# src/tools/make_ctags
44

5+
command -v ctags >/dev/null || \
6+
{ echo "'ctags' program not found" 1>&2; exit 1; }
7+
58
trap "rm -f /tmp/$$" 0 1 2 3 15
69
rm -f ./tags
710

src/tools/make_etags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
# src/tools/make_etags
44

5+
command -v etags >/dev/null || \
6+
{ echo "'etags' program not found" 1>&2; exit 1; }
7+
58
rm -f ./TAGS
69

710
find `pwd`/ -type f -name '*.[chyl]' -print |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy