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

+3
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

+3
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)