Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52a301e

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 DunstanDiscussion:https://postgr.es/m/2394207.ccz7JgCJsh@x200m
1 parent9f527a6 commit52a301e

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)

[8]ページ先頭

©2009-2025 Movatter.jp