Commit 5f4056a3 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

Fix "make tags" command (#1337)

Backport enhancements from master, commits:

* 9c4bfa66: "make tags": remove -t
  option of ctags. The option was kept for backward compatibility,
  but it was completly removed recently. Patch written by Stéphane
  Wirtel.
* cf0ac6a7: Fix "make tags": set
  locale to C to call sort
* 8a543c0b: `make tags` fixes (GH-717)
parent 219a3f99
...@@ -1365,10 +1365,10 @@ autoconf: ...@@ -1365,10 +1365,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 -f tags -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::
......
...@@ -15028,7 +15028,7 @@ do ...@@ -15028,7 +15028,7 @@ do
done done
SRCDIRS="Parser Grammar Objects Python Modules Mac" SRCDIRS="Parser Objects Python Modules"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
$as_echo_n "checking for build directories... " >&6; } $as_echo_n "checking for build directories... " >&6; }
for dir in $SRCDIRS; do for dir in $SRCDIRS; do
......
...@@ -4729,7 +4729,7 @@ do ...@@ -4729,7 +4729,7 @@ do
done done
AC_SUBST(SRCDIRS) AC_SUBST(SRCDIRS)
SRCDIRS="Parser Grammar Objects Python Modules Mac" SRCDIRS="Parser Objects Python Modules"
AC_MSG_CHECKING(for build directories) AC_MSG_CHECKING(for build directories)
for dir in $SRCDIRS; do for dir in $SRCDIRS; do
if test ! -d $dir; then if test ! -d $dir; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment