grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v3.1-23-gfbd9f06


From: Paul Eggert
Subject: grep branch, master, updated. v3.1-23-gfbd9f06
Date: Fri, 20 Apr 2018 15:46:17 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  fbd9f06ce1a3b9203378881e59184d3caa1c3c4c (commit)
      from  5b4a1ffebe0f032dca7aa4ccf9673a55b0c04db0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=fbd9f06ce1a3b9203378881e59184d3caa1c3c4c


commit fbd9f06ce1a3b9203378881e59184d3caa1c3c4c
Author: Paul Eggert <address@hidden>
Date:   Fri Apr 20 12:44:48 2018 -0700

    doc: port better to mandoc
    
    * doc/grep.in.1: Check for groff and its macro packages
    independently, as groff can be used with non-groff macro packages.
    Use an-ext style macros rather than www.tmac style, as this should
    be more portable to mandoc.  Problem reported by Laura Morales and
    Ingo Schwarze (Bug#31228).

diff --git a/doc/grep.in.1 b/doc/grep.in.1
index ecc8105..9393b37 100644
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -9,28 +9,131 @@
 .\" after you make a change that you decide is nontrivial.
 .\" It is no big deal to forget to update the date.
 .
-.if !\n(.g \{\
-.      if !\w|\*(lq| \{\
-.              ds lq ``
-.              if \w'\(lq' .ds lq "\(lq
+.TH GREP 1 \*(Dt "GNU grep @VERSION@" "User Commands"
+.
+.if !\w|\*(lq| \{\
+.\" groff an-old.tmac does not seem to be in use, so define lq and rq.
+.      ie \n(.g \{\
+.              ds lq \(lq\"
+.              ds rq \(rq\"
 .      \}
-.      if !\w|\*(rq| \{\
+.      el \{\
+.              ds lq ``
 .              ds rq ''
-.              if \w'\(rq' .ds rq "\(rq
 .      \}
 .\}
 .
-.ie \n[.g] .mso www.tmac
+.if !\w|\*(la| \{\
+.\" groff an-ext.tmac does not seem to be in use, so define the parts of
+.\" it that are used below.  For a copy of groff an-ext.tmac, please see:
+.\" https://git.savannah.gnu.org/cgit/groff.git/plain/tmac/an-ext.tmac
+.\" --- Start of lines taken from groff an-ext.tmac
+.
+.\" Check whether we are using grohtml.
+.nr mH 0
+.if \n(.g \
+.  if '\*(.T'html' \
+.    nr mH 1
+.
+.
+.\" Map mono-width fonts to standard fonts for groff's TTY device.
+.if n \{\
+.  do ftr CR R
+.  do ftr CI I
+.  do ftr CB B
+.\}
+.
+.\" groff has glyph entities for angle brackets.
+.ie \n(.g \{\
+.  ds la \(la\"
+.  ds ra \(ra\"
+.\}
 .el \{\
-. de MTO
-\\$2 \(laemail: \\$1 \(ra\\$3
+.  ds la <\"
+.  ds ra >\"
+.  \" groff's man macros control hyphenation with this register.
+.  nr HY 1
+.\}
+.
+.\" Start URL.
+.de UR
+.  ds m1 \\$1\"
+.  nh
+.  if \\n(mH \{\
+.    \" Start diversion in a new environment.
+.    do ev URL-div
+.    do di URL-div
+.  \}
 ..
-. de URL
-\\$2 \(laURL: \\$1 \(ra\\$3
+.
+.
+.\" End URL.
+.de UE
+.  ie \\n(mH \{\
+.    br
+.    di
+.    ev
+.
+.    \" Has there been one or more input lines for the link text?
+.    ie \\n(dn \{\
+.      do HTML-NS "<a href=""\\*(m1"">"
+.      \" Yes, strip off final newline of diversion and emit it.
+.      do chop URL-div
+.      do URL-div
+\c
+.      do HTML-NS </a>
+.    \}
+.    el \
+.      do HTML-NS "<a href=""\\*(m1"">\\*(m1</a>"
+\&\\$*\"
+.  \}
+.  el \
+\\*(la\\*(m1\\*(ra\\$*\"
+.
+.  hy \\n(HY
+..
+.
+.
+.\" Start email address.
+.de MT
+.  ds m1 \\$1\"
+.  nh
+.  if \\n(mH \{\
+.    \" Start diversion in a new environment.
+.    do ev URL-div
+.    do di URL-div
+.  \}
 ..
+.
+.
+.\" End email address.
+.de ME
+.  ie \\n(mH \{\
+.    br
+.    di
+.    ev
+.
+.    \" Has there been one or more input lines for the link text?
+.    ie \\n(dn \{\
+.      do HTML-NS "<a href=""mailto:\\*(m1"">"
+.      \" Yes, strip off final newline of diversion and emit it.
+.      do chop URL-div
+.      do URL-div
+\c
+.      do HTML-NS </a>
+.    \}
+.    el \
+.      do HTML-NS "<a href=""mailto:\\*(m1"">\\*(m1</a>"
+\&\\$*\"
+.  \}
+.  el \
+\\*(la\\*(m1\\*(ra\\$*\"
+.
+.  hy \\n(HY
+..
+.\" --- End of lines taken from groff an-ext.tmac
 .\}
 .
-.TH GREP 1 \*(Dt "GNU grep @VERSION@" "User Commands"
 .hy 0
 .
 .SH NAME
@@ -1174,11 +1277,17 @@ not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.
 .SH BUGS
 .SS "Reporting Bugs"
 Email bug reports to
-.MTO address@hidden "the bug-reporting address" .
+.MT address@hidden
+the bug-reporting address
+.ME .
 An
-.URL http://lists.gnu.org/mailman/listinfo/bug-grep "email archive"
+.UR http://lists.gnu.org/mailman/listinfo/bug-grep
+email archive
+.UE
 and a
-.URL http://debbugs.gnu.org/cgi/pkgreport.cgi?package=grep "bug tracker"
+.UR http://debbugs.gnu.org/cgi/pkgreport.cgi?package=grep
+bug tracker
+.UE
 are available.
 .SS "Known Bugs"
 Large repetition counts in the
@@ -1206,7 +1315,9 @@ glob(7), regex(7).
 grep(1p).
 .SS "Full Documentation"
 A
-.URL http://www.gnu.org/software/grep/manual/ "complete manual"
+.UR http://www.gnu.org/software/grep/manual/
+complete manual
+.UE
 is available.
 If the
 .B info

-----------------------------------------------------------------------

Summary of changes:
 doc/grep.in.1 | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 127 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]