mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
This commit is contained in:
parent
cc6974df16
commit
af26f28b9f
@ -38,11 +38,10 @@ fi
|
|||||||
find `pwd`/ -type f -name '*.[chyl]' -print |
|
find `pwd`/ -type f -name '*.[chyl]' -print |
|
||||||
xargs ctags -a -f tags "$FLAGS"
|
xargs ctags -a -f tags "$FLAGS"
|
||||||
|
|
||||||
# Exuberant tags has a header that we cannot sort in with the other entries
|
# Sorting non-Exuberant ctags file allows for fast searching of the tags file.
|
||||||
# so we skip the sort step
|
# Since etags file has a header that we cannot sort in with the other entries
|
||||||
# Why are we sorting this? I guess some tag implementation need this,
|
# we skip the sort step.
|
||||||
# particularly for append mode. bjm 2012-02-24
|
if [ ! "$IS_EXUBERANT" -a ! "$EMACS_MODE" ]
|
||||||
if [ ! "$IS_EXUBERANT" ]
|
|
||||||
then LC_ALL=C
|
then LC_ALL=C
|
||||||
export LC_ALL
|
export LC_ALL
|
||||||
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user