summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/tags-pr12372.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/tags-pr12372.sh b/t/tags-pr12372.sh
index 4eeb9be96..657be6088 100644
--- a/t/tags-pr12372.sh
+++ b/t/tags-pr12372.sh
@@ -63,7 +63,17 @@ $AUTOMAKE
./configure
-$MAKE
+# Exuberant Ctags (at least version 5.8) do not generate any tags
+# for file extensions it doesn't recognize. This can be fixed by
+# using the '--langmap' option. But we must be careful, because
+# etags from Emacs (at least version 23.4) doesn't recognize that
+# option.
+if etags --help | grep '.*--langmap'; then
+ run_make ETAGSFLAGS="--langmap=c:+.pc"
+else
+ $MAKE
+fi
+
cat TAGS
cat sub/TAGS
$FGREP foo-main.pc TAGS