Skip to content

Commit 5f4056a

Browse files
authored
Fix "make tags" command (#1337)
Backport enhancements from master, commits: * 9c4bfa6: "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. * cf0ac6a: Fix "make tags": set locale to C to call sort * 8a543c0: `make tags` fixes (GH-717)
1 parent 219a3f9 commit 5f4056a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,10 +1365,10 @@ autoconf:
13651365
# Create a tags file for vi
13661366
tags::
13671367
cd $(srcdir); \
1368-
ctags -w -t Include/*.h; \
1369-
for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
1368+
ctags -w Include/*.h; \
1369+
for i in $(SRCDIRS); do ctags -f tags -w -a $$i/*.[ch]; \
13701370
done; \
1371-
sort -o tags tags
1371+
LC_ALL=C sort -o tags tags
13721372

13731373
# Create a tags file for GNU Emacs
13741374
TAGS::

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15028,7 +15028,7 @@ do
1502815028
done
1502915029
1503015030
15031-
SRCDIRS="Parser Grammar Objects Python Modules Mac"
15031+
SRCDIRS="Parser Objects Python Modules"
1503215032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
1503315033
$as_echo_n "checking for build directories... " >&6; }
1503415034
for dir in $SRCDIRS; do

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4729,7 +4729,7 @@ do
47294729
done
47304730

47314731
AC_SUBST(SRCDIRS)
4732-
SRCDIRS="Parser Grammar Objects Python Modules Mac"
4732+
SRCDIRS="Parser Objects Python Modules"
47334733
AC_MSG_CHECKING(for build directories)
47344734
for dir in $SRCDIRS; do
47354735
if test ! -d $dir; then

0 commit comments

Comments
 (0)