summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-04-28 01:41:40 (GMT)
committerGitHub <noreply@github.com>2017-04-28 01:41:40 (GMT)
commit5f4056a3c94e197eb0a5ce0acdf26613b0833d09 (patch)
tree8e36cf6198ffc4f131056c81237b198c5c32a93a
parent219a3f991a58765103c4fa89b705906ff1600b7a (diff)
downloadcpython-5f4056a3c94e197eb0a5ce0acdf26613b0833d09.zip
cpython-5f4056a3c94e197eb0a5ce0acdf26613b0833d09.tar.gz
cpython-5f4056a3c94e197eb0a5ce0acdf26613b0833d09.tar.bz2
Fix "make tags" command (#1337)
Backport enhancements from master, commits: * 9c4bfa6669e220efdd379b9f8e7db32bb4e25e72: "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. * cf0ac6a71ae51249a05521f49c1a0fabbb948488: Fix "make tags": set locale to C to call sort * 8a543c0bc7347d5b333f334d157bf4a7cd33c14a: `make tags` fixes (GH-717)
-rw-r--r--Makefile.pre.in6
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
3 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index e288964..2b054684 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1365,10 +1365,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 -f tags -w -a $$i/*.[ch]; \
done; \
- sort -o tags tags
+ LC_ALL=C sort -o tags tags
# Create a tags file for GNU Emacs
TAGS::
diff --git a/configure b/configure
index 40549d0..35fbeac 100755
--- a/configure
+++ b/configure
@@ -15028,7 +15028,7 @@ do
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_n "checking for build directories... " >&6; }
for dir in $SRCDIRS; do
diff --git a/configure.ac b/configure.ac
index 5bd9b9d..75a62d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4729,7 +4729,7 @@ do
done
AC_SUBST(SRCDIRS)
-SRCDIRS="Parser Grammar Objects Python Modules Mac"
+SRCDIRS="Parser Objects Python Modules"
AC_MSG_CHECKING(for build directories)
for dir in $SRCDIRS; do
if test ! -d $dir; then