Source-Changes-HG archive

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

[src/netbsd-9]: src/distrib/notes Pull up the following revision:



details:   https://anonhg.NetBSD.org/src/rev/5ab24449091c
branches:  netbsd-9
changeset: 1001221:5ab24449091c
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Nov 27 16:07:30 2019 +0000

description:
Pull up the following revision:

        distrib/notes/Makefile.inc              1.47

When creating the TOC file, strip all incoming double quotes, but output
quotes around the third arg of the generated Ti macro invocation.
This fixes the TOC in non-html output. Pointed out by kre.

diffstat:

 distrib/notes/Makefile.inc |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r f6a966d53c18 -r 5ab24449091c distrib/notes/Makefile.inc
--- a/distrib/notes/Makefile.inc        Wed Nov 27 14:34:31 2019 +0000
+++ b/distrib/notes/Makefile.inc        Wed Nov 27 16:07:30 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.43.18.3 2019/11/27 13:36:55 msaitoh Exp $
+#      $NetBSD: Makefile.inc,v 1.43.18.4 2019/11/27 16:07:30 martin Exp $
 #
 
 # Ross Harvey <ross%NetBSD.org@localhost>
@@ -107,7 +107,9 @@
 # space taken by the TOC itself.
 #
 
-TOCPROC=          2>&1 >/dev/null | ${TOOL_GREP} -e '^\.Ti '
+TOCPROC=         2>&1 >/dev/null |\
+          ${TOOL_SED} -n -e 's/"//g' \
+          -e '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
 
 ${TARG}.PostScript.toc: ${SRCS}
        ${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@.tmp



Home | Main Index | Thread Index | Old Index