Module Name: src
Committed By: martin
Date: Wed Nov 27 15:58:12 UTC 2019
Modified Files:
src/distrib/notes: Makefile.inc
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/distrib/notes/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/notes/Makefile.inc
diff -u src/distrib/notes/Makefile.inc:1.46 src/distrib/notes/Makefile.inc:1.47
--- src/distrib/notes/Makefile.inc:1.46 Wed Nov 27 09:29:25 2019
+++ src/distrib/notes/Makefile.inc Wed Nov 27 15:58:12 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.46 2019/11/27 09:29:25 martin Exp $
+# $NetBSD: Makefile.inc,v 1.47 2019/11/27 15:58:12 martin Exp $
#
# Ross Harvey <[email protected]>
@@ -107,7 +107,9 @@ ${TARG}.more: ${SRCS} ${TOC.more} ${DIST
# 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} > [email protected]