mirror of https://github.com/python/cpython
Issue #27726: Fix "make tags"
* Memove -t option of ctags. The option was kept for backward compatibility, but it was completly removed recently. Patch written by Stéphane Wirtel. * Set locale to C to call sort. vim expects that the tags file is sorted using english collation, so it fails if the locale is french for example. Use LC_ALL=C to force english sorting order. .
This commit is contained in:
parent
7e6977a8bc
commit
034fb564b1
|
@ -1548,10 +1548,10 @@ autoconf:
|
||||||
# Create a tags file for vi
|
# Create a tags file for vi
|
||||||
tags::
|
tags::
|
||||||
cd $(srcdir); \
|
cd $(srcdir); \
|
||||||
ctags -w -t Include/*.h; \
|
ctags -w Include/*.h; \
|
||||||
for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
|
for i in $(SRCDIRS); do ctags -w -a $$i/*.[ch]; \
|
||||||
done; \
|
done; \
|
||||||
sort -o tags tags
|
LC_ALL=C sort -o tags tags
|
||||||
|
|
||||||
# Create a tags file for GNU Emacs
|
# Create a tags file for GNU Emacs
|
||||||
TAGS::
|
TAGS::
|
||||||
|
|
Loading…
Reference in New Issue