summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-19 22:40:14 -0500
committerJune McEnroe <june@causal.agency>2021-01-19 22:40:14 -0500
commit7e46e2e83472d2a22fcc3793aadb647d26defe92 (patch)
tree178997ff1a2aa3d23e52e2ec7854be91b61389b7 /bin/man1
parentMap tags to IDs using only [[:alnum:]-._] (diff)
downloadsrc-7e46e2e83472d2a22fcc3793aadb647d26defe92.tar.gz
src-7e46e2e83472d2a22fcc3793aadb647d26defe92.zip
Add mtags to generate tags for make and mdoc
Diffstat (limited to 'bin/man1')
-rw-r--r--bin/man1/mtags.168
1 files changed, 68 insertions, 0 deletions
diff --git a/bin/man1/mtags.1 b/bin/man1/mtags.1
new file mode 100644
index 00000000..bb4b50b4
--- /dev/null
+++ b/bin/man1/mtags.1
@@ -0,0 +1,68 @@
+.Dd January 19, 2021
+.Dt MTAGS 1
+.Os
+.
+.Sh NAME
+.Nm mtags
+.Nd miscellaneous tags
+.
+.Sh SYNOPSIS
+.Nm
+.Op Fl a
+.Op Fl f Ar tagsfile
+.Ar
+.
+.Sh DESCRIPTION
+The
+.Nm
+utility
+makes a
+.Pa tags
+file for
+.Xr ex 1
+from the specified
+.Xr make 1
+and
+.Xr mdoc 7
+sources.
+.
+.Pp
+The arguments are as follows:
+.Bl -tag -width Ds
+.It Fl a
+Append to
+.Pa tags
+file.
+.It Fl f Ar tagsfile
+Place the tag descriptions
+in a file called
+.Ar tagsfile .
+The default behaviour is
+to place them in a file called
+.Pa tags .
+.El
+.
+.Pp
+Files whose names are
+.Pa Makefile
+or end in
+.Pa .mk
+are assumed to be
+.Xr make 1
+files.
+Files whose names end in
+.Pa .[1-9]
+are assumed to be
+.Xr mdoc 7
+files.
+.
+.Sh FILES
+.Bl -tag -width Ds
+.It Pa tags
+default output tags file
+.El
+.
+.Sh SEE ALSO
+.Xr ctags 1 ,
+.Xr ex 1 ,
+.Xr vi 1