Module Name: src
Committed By: christos
Date: Wed Sep 10 21:44:22 UTC 2014
Modified Files:
src/external/bsd/nvi/docs/USD.doc/vi.ref: Makefile ref.so vi.ref
Log Message:
Fix the index building which got completely broken after the last update.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so \
src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile
diff -u src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.4 src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.5
--- src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.4 Sat Jul 5 15:23:00 2014
+++ src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile Wed Sep 10 17:44:22 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/07/05 19:23:00 dholland Exp $
+# $NetBSD: Makefile,v 1.5 2014/09/10 21:44:22 christos Exp $
#
# @(#)Makefile 8.20 (Berkeley) 8/18/96
@@ -6,6 +6,8 @@ SECTION= reference/ref1
ARTICLE= vi
SRCS= vi.ref
DEPSRCS= ex.cmd.roff set.opt.roff vi.cmd.roff ref.so index.so
+# Add -U to the macros if you want to build the index since it needs
+# unsafe mode for .sy
MACROS= -me
ROFF_TBL= yes
CLEANFILES+= index index.so
@@ -14,12 +16,12 @@ CLEANFILES+= index index.so
# index.so is generated.
index.so: vi.ref
- ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | \
+ ${TOOL_SOELIM} -I${.CURDIR} ${.ALLSRC} | ${TOOL_TBL} | \
${TOOL_ROFF_PS} ${MACROS} > /dev/null
sed -e 's/MINUSSIGN/\\-/' \
-e 's/DOUBLEQUOTE/""/' \
-e "s/SQUOTE/'/" \
-e 's/ /__SPACE/g' < index | \
- sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \
+ sort -u '-t ' +0 -1 +1n | awk -f ${.CURDIR}/merge.awk | \
sed -e 's/__SPACE/ /g' > $@
rm -f index
Index: src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so
diff -u src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so:1.1 src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so:1.2
--- src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so:1.1 Fri Nov 22 11:00:45 2013
+++ src/external/bsd/nvi/docs/USD.doc/vi.ref/ref.so Wed Sep 10 17:44:22 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: ref.so,v 1.1 2013/11/22 16:00:45 christos Exp $
+.\" $NetBSD: ref.so,v 1.2 2014/09/10 21:44:22 christos Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
@@ -62,7 +62,7 @@
..
.\" key words for index
.de KY
-.sy echo >>index '\\$1 \\n%'
+.if \n[.U]==0 .sy echo >>index '\\$1 \\n%'
..
.\" option names
.de OP
Index: src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref
diff -u src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref:1.1 src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref:1.2
--- src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref:1.1 Fri Nov 22 11:00:45 2013
+++ src/external/bsd/nvi/docs/USD.doc/vi.ref/vi.ref Wed Sep 10 17:44:22 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: vi.ref,v 1.1 2013/11/22 16:00:45 christos Exp $
+.\" $NetBSD: vi.ref,v 1.2 2014/09/10 21:44:22 christos Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
@@ -113,7 +113,7 @@ Engineers, Inc.
The financial support of UUNET Communications Services is gratefully
acknowledged.
.)q
-.sy echo -n >index
+.if \n[.U]==0 .sy echo -n >index
.oh 'Vi/Ex Reference''USD:13-%'
.eh 'USD:13-%''Vi/Ex Reference'
.bp 4