]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27726: Fix "make tags"
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Aug 2016 12:00:58 +0000 (14:00 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Aug 2016 12:00:58 +0000 (14:00 +0200)
* 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. .

Makefile.pre.in

index dfc319b2ea737ce9f1a9c5cf70af4695b8d98c60..f0ddddbbd8b63b386b2ea7e2df7bd4a6b576f361 100644 (file)
@@ -1548,10 +1548,10 @@ autoconf:
 # Create a tags file for vi
 tags::
        cd $(srcdir); \
-       ctags -w -t Include/*.h; \
-       for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
+       ctags -w Include/*.h; \
+       for i in $(SRCDIRS); do ctags -w -a $$i/*.[ch]; \
        done; \
-       sort -o tags tags
+       LC_ALL=C sort -o tags tags
 
 # Create a tags file for GNU Emacs
 TAGS::