Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ae66716

Browse files
committed
Fix make_etags breakage on certain platforms.
make_etags produced wrong format TAGS files on platforms such as Mac, which uses non-Exuberant ctags. Author: Masahiko Sawada Reviewed-by: Tatsuo Ishii Backpatch-through: 15 Discussion: https://postgr.es/m/CAD21AoDmCqpS%2BU6b9Bc-b4OFx3tz%3DNv6O2KVkoVg7sHk60spjA%40mail.gmail.com
1 parent 63e4f13 commit ae66716

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tools/make_ctags

+4-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ find `pwd`/ \( -name tmp_install -prune -o -name tmp_check -prune \) \
8787
-o -name "*.sql" -o -name "*.p[lm]" \) -type f -print |
8888
xargs $PROG $TAGS_OPT $TAGS_FILE $FLAGS $IGNORE_IDENTIFIES
8989

90-
# Exuberant tags has a header that we cannot sort in with the other entries
91-
# so we skip the sort step
92-
# Why are we sorting this? I guess some tag implementation need this,
93-
# particularly for append mode. bjm 2012-02-24
94-
if [ ! "$IS_EXUBERANT" ]
90+
# Sorting non-Exuberant ctags file allows for fast searching of the tags file.
91+
# Since etags file has a header that we cannot sort in with the other entries
92+
# we skip the sort step.
93+
if [ ! "$IS_EXUBERANT" -a ! "$EMACS_MODE" ]
9594
then LC_ALL=C
9695
export LC_ALL
9796
sort $TAGS_FILE >/tmp/$$ && mv /tmp/$$ $TAGS_FILE

0 commit comments

Comments
 (0)